Fix propagation of test report attributes from killforks
I do not really like the current implementation. But it works for now.
This commit is contained in:
parent
5e7bfc0812
commit
5ee21dc303
2 changed files with 5 additions and 1 deletions
|
@ -124,7 +124,7 @@ module Mutant
|
||||||
config.isolation.call do
|
config.isolation.call do
|
||||||
mutation.insert
|
mutation.insert
|
||||||
test.run
|
test.run
|
||||||
end
|
end.update(test: test, mutation: mutation)
|
||||||
rescue Isolation::Error
|
rescue Isolation::Error
|
||||||
Result::Test.new(
|
Result::Test.new(
|
||||||
test: test,
|
test: test,
|
||||||
|
|
|
@ -14,6 +14,10 @@ describe Mutant::Runner do
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def update(attributes)
|
||||||
|
self
|
||||||
|
end
|
||||||
|
|
||||||
def method_missing(name, *arguments)
|
def method_missing(name, *arguments)
|
||||||
super unless attributes.key?(name)
|
super unless attributes.key?(name)
|
||||||
fail "Arguments provided for #{name}" if arguments.any?
|
fail "Arguments provided for #{name}" if arguments.any?
|
||||||
|
|
Loading…
Reference in a new issue