Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (32 sloc) 0.62 kB
ENV["WATCHR"] = "1"
system 'clear'
def run(cmd)
`#{cmd}`
end
def run_all_tests
system('clear')
result = run "buster test -F warning"
puts result
end
run_all_tests
watch('.*.js') { run_all_tests }
# Ctrl-\
Signal.trap 'QUIT' do
puts " --- Running all tests ---\n\n"
run_all_tests
end
@interrupted = false
# Ctrl-C
Signal.trap 'INT' do
if @interrupted then
@wants_to_quit = true
abort("\n")
else
puts "Interrupt a second time to quit"
@interrupted = true
Kernel.sleep 1.5
# raise Interrupt, nil # let the run loop catch it
run_all_tests
@interrupted = false
end
end
Jump to Line
Something went wrong with that request. Please try again.