Simplify noop reporter
This commit is contained in:
parent
ef0f5c2d8c
commit
8e6432b295
1 changed files with 11 additions and 1 deletions
|
@ -99,12 +99,22 @@ module Mutant
|
||||||
#
|
#
|
||||||
def report_noop
|
def report_noop
|
||||||
info('NOOP MUTATION TESTS FAILED!')
|
info('NOOP MUTATION TESTS FAILED!')
|
||||||
killers.reject(&:success?).map(&:report).map(&:test_report).each do |report|
|
noop_reports.each do |report|
|
||||||
puts(report.test.identification)
|
puts(report.test.identification)
|
||||||
puts(report.output)
|
puts(report.output)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Return test noop reports
|
||||||
|
#
|
||||||
|
# @return [Enumerable<Test::Report>]
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
|
#
|
||||||
|
def noop_reports
|
||||||
|
killers.reject(&:success?).map(&:report).map(&:test_report)
|
||||||
|
end
|
||||||
|
|
||||||
end # Mutation
|
end # Mutation
|
||||||
end # Report
|
end # Report
|
||||||
end # CLI
|
end # CLI
|
||||||
|
|
Loading…
Add table
Reference in a new issue