Simplify noop reporter

This commit is contained in:
Markus Schirp 2014-06-02 14:26:44 +00:00
parent ef0f5c2d8c
commit 8e6432b295

View file

@ -99,12 +99,22 @@ module Mutant
#
def report_noop
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.output)
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 # Report
end # CLI