Skip to content

Commit

Permalink
Just running all tests on any file save. They are so fast it is just …
Browse files Browse the repository at this point in the history
…easier this way.
  • Loading branch information
jnunemaker committed May 8, 2010
1 parent 46aa711 commit d923fd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specs.watchr
Expand Up @@ -36,10 +36,10 @@ def related_test_files(path)
Dir['test/**/*.rb'].select { |file| file =~ /test_#{File.basename(path)}/ }
end

watch('test/helper\.rb') { system('clear'); run_all_tests }
watch('test/test_.*\.rb') { |m| system('clear'); run_test_file(m[0]) }
watch('lib/.*') { |m| related_test_files(m[0]).each { |file| run_test_file(file) } }
watch('lib/plucky/criteria_merger\.rb') { |m| run_test_file('test/test_query.rb') }
watch('.*\.rb') { system('clear'); run_all_tests }
# watch('test/helper\.rb') { system('clear'); run_all_tests }
# watch('test/test_.*\.rb') { |m| system('clear'); run_test_file(m[0]) }
# watch('lib/.*') { |m| related_test_files(m[0]).each { |file| run_test_file(file) } }

# Ctrl-\
Signal.trap('QUIT') do
Expand Down

0 comments on commit d923fd1

Please sign in to comment.