Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 564 Bytes
# Call from command line with `watchr autotest.watchr`
# Automatically run tests when files change.
# I run this in the corner of my screen to let me know immediately
# if I make breaking changes (or syntax errors).
# It depends on ruby and the watchr gem -
# get it with `sudo gem install watchr`
# Idea from
def run_all_tests
print `clear`
puts "Tests run #{'%Y-%m-%d %H:%M:%S')}"
puts `node runtests.js`
watch("(tests|lib)(/.*)+.js") { |m| run_all_tests }
Jump to Line
Something went wrong with that request. Please try again.