Merge pull request #9 from smitcham/master
Fix for failure to rerun after syntax error in system under test
This commit is contained in:
commit
cd27ecb5be
|
@ -72,12 +72,10 @@ module Guard
|
|||
else
|
||||
UI.info(SOME_SPECS_MESSAGE % paths.join(' '))
|
||||
end
|
||||
|
||||
if failed_files = JasmineHeadlessWebkitRunner.run(paths, @filtered_options)
|
||||
@files_to_rerun = failed_files
|
||||
end
|
||||
|
||||
failed_files && failed_files.empty?
|
||||
failed_files = JasmineHeadlessWebkitRunner.run(paths, @filtered_options)
|
||||
@files_to_rerun = failed_files || paths
|
||||
|
||||
failed_files && @files_to_rerun.empty?
|
||||
end
|
||||
|
||||
def filter_paths(paths)
|
||||
|
|
|
@ -24,6 +24,7 @@ module Guard
|
|||
end
|
||||
rescue Jasmine::Headless::InvalidReport => e
|
||||
Notifier.notify('Spec runner interrupted!', :title => 'Jasmine results', :image => :failed)
|
||||
false
|
||||
rescue Exception => e
|
||||
p e
|
||||
end
|
||||
|
|
|
@ -49,7 +49,7 @@ REPORT
|
|||
it 'should notify failure' do
|
||||
Guard::Notifier.expects(:notify).with("Spec runner interrupted!", { :title => 'Jasmine results', :image => :failed })
|
||||
|
||||
Guard::JasmineHeadlessWebkitRunner.notify(file).should be_nil
|
||||
Guard::JasmineHeadlessWebkitRunner.notify(file).should be_false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue