Sha256: 3a8faf4060ba07355d4d1b73ae43d7ddd9d1fc7817e98948a6526444e8aa5afe
Contents?: true
Size: 908 Bytes
Versions: 1
Compression:
Stored size: 908 Bytes
Contents
# Run me with: # # $ watchr specs.watchr # -------------------------------------------------- # Helpers # -------------------------------------------------- def run(cmd) puts(cmd) system(cmd) end def run_all_tests # see Rakefile for the definition of the test:all task system( "rake -s test:all VERBOSE=true" ) end # -------------------------------------------------- # Watchr Rules # -------------------------------------------------- watch( '^test.*/test_.*\.rb' ) { |m| run( "ruby -rubygems -I.:lib %s" % m[0] ) } watch( '^lib/nanotest/(.*)\.rb' ) { |m| run( "ruby -rubygems -I.:lib test/test_%s.rb" % m[1] ) } # -------------------------------------------------- # Signal Handling # -------------------------------------------------- # Ctrl-\ Signal.trap('QUIT') do puts " --- Running all tests ---\n\n" run_all_tests end # Ctrl-C Signal.trap('INT') { abort("\n") }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanotest_spec-0.9 | specs.watchr |