Merge pull request #56 from mbj/errors-as-success
Change forked run method to consider some errors as success
This commit is contained in:
commit
a215ff74cf
1 changed files with 6 additions and 1 deletions
|
@ -20,7 +20,12 @@ module Mutant
|
|||
# TODO: replace with real streams from configuration
|
||||
require 'stringio'
|
||||
null = StringIO.new
|
||||
!::RSpec::Core::Runner.run(command_line_arguments, null, null).zero?
|
||||
args = command_line_arguments
|
||||
begin
|
||||
!::RSpec::Core::Runner.run(args, null, null).zero?
|
||||
rescue StandardError
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
# Return command line arguments
|
||||
|
|
Loading…
Add table
Reference in a new issue