free_mutant/lib/mutant/reporter/cli/printer/subject_result.rb
2015-05-31 21:59:36 +00:00

28 lines
653 B
Ruby

module Mutant
class Reporter
class CLI
class Printer
# Subject result printer
class SubjectResult < self
delegate :subject, :alive_mutation_results, :tests
# Run report printer
#
# @return [undefined]
#
# @api private
#
def run
status(subject.identification)
tests.each do |test|
puts("- #{test.identification}")
end
visit_collection(MutationResult, alive_mutation_results)
end
end # SubjectResult
end # Printer
end # CLI
end # Reporter
end # Mutant