Class: Mutant::Reporter::CLI::Report::Subject

Inherits:
Mutant::Reporter::CLI::Report show all
Defined in:
lib/mutant/reporter/cli/report/subject.rb

Overview

Subject report printer

Instance Method Summary collapse

Methods inherited from Printer

run

Methods included from Delegator

included

Instance Method Details

#runself

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Run report printer

Returns:

  • (self)


18
19
20
21
22
23
24
25
# File 'lib/mutant/reporter/cli/report/subject.rb', line 18

def run
  status(subject.identification)
  object.tests.each do |test|
    puts("- #{test.identification}")
  end
  object.failed_mutations.each(&method(:visit))
  self
end