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:
Markus Schirp 2014-07-06 13:50:54 +00:00
parent 5e7bfc0812
commit 5ee21dc303
2 changed files with 5 additions and 1 deletions

View file

@ -124,7 +124,7 @@ module Mutant
config.isolation.call do
mutation.insert
test.run
end
end.update(test: test, mutation: mutation)
rescue Isolation::Error
Result::Test.new(
test: test,

View file

@ -14,6 +14,10 @@ describe Mutant::Runner do
super
end
def update(attributes)
self
end
def method_missing(name, *arguments)
super unless attributes.key?(name)
fail "Arguments provided for #{name}" if arguments.any?