1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Skip the full suite if the specific test file fails

This commit is contained in:
Ryan Fitzgerald 2012-09-08 20:44:25 -07:00
parent 981f12ddc2
commit 6aa27e2b19

View file

@ -10,7 +10,12 @@ module ::Guard
def run_spec(path)
if File.exists?(path)
system "bundle exec bacon -Itest -q #{path}"
success = system "bundle exec bacon -Itest -q #{path}"
if !success
@any_failed = true
end
puts
end
end
@ -20,13 +25,16 @@ module ::Guard
end
def run_on_changes(paths)
@any_failed = false
paths.delete(:all)
paths.each do |path|
file_changed(path)
end
run_all
if !@any_failed
run_all
end
end
end
end