Continue on dead workers with counting mutation as not killed
This commit is contained in:
parent
efa12158d1
commit
d7ae5a01d4
1 changed files with 19 additions and 4 deletions
|
@ -29,10 +29,6 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def run
|
||||
test_report = Isolation.call do
|
||||
mutation.insert
|
||||
test.run
|
||||
end
|
||||
|
||||
Report.new(
|
||||
killer: self,
|
||||
|
@ -40,5 +36,24 @@ module Mutant
|
|||
)
|
||||
end
|
||||
|
||||
# Return test report
|
||||
#
|
||||
# @return [Test::Report]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def test_report
|
||||
Isolation.call do
|
||||
mutation.insert
|
||||
test.run
|
||||
end
|
||||
rescue Parallel::DeadWorker => exception
|
||||
Test::Report.new(
|
||||
test: test,
|
||||
output: exception.message,
|
||||
success: true
|
||||
)
|
||||
end
|
||||
|
||||
end # Killer
|
||||
end # Mutant
|
||||
|
|
Loading…
Reference in a new issue