Skip the full suite if the specific test file fails
This commit is contained in:
parent
981f12ddc2
commit
6aa27e2b19
10
Guardfile
10
Guardfile
|
@ -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,15 +25,18 @@ module ::Guard
|
|||
end
|
||||
|
||||
def run_on_changes(paths)
|
||||
@any_failed = false
|
||||
paths.delete(:all)
|
||||
|
||||
paths.each do |path|
|
||||
file_changed(path)
|
||||
end
|
||||
|
||||
if !@any_failed
|
||||
run_all
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
guard 'bacon' do
|
||||
|
|
Loading…
Reference in New Issue