Class: Mutant::Reporter::CLI

Inherits:
Mutant::Reporter show all
Defined in:
lib/mutant/reporter/cli.rb,
lib/mutant/reporter/cli/report.rb,
lib/mutant/reporter/cli/printer.rb,
lib/mutant/reporter/cli/progress.rb,
lib/mutant/reporter/cli/registry.rb,
lib/mutant/reporter/cli/report/env.rb,
lib/mutant/reporter/cli/report/test.rb,
lib/mutant/reporter/cli/progress/env.rb,
lib/mutant/reporter/cli/progress/noop.rb,
lib/mutant/reporter/cli/report/subject.rb,
lib/mutant/reporter/cli/progress/config.rb,
lib/mutant/reporter/cli/progress/result.rb,
lib/mutant/reporter/cli/report/mutation.rb,
lib/mutant/reporter/cli/progress/subject.rb,
lib/mutant/reporter/cli/progress/result/subject.rb,
lib/mutant/reporter/cli/progress/result/mutation.rb

Overview

Reporter that reports in human readable format

Defined Under Namespace

Classes: Printer, Progress, Registry, Report

Instance Method Summary collapse

Instance Method Details

#progress(object) ⇒ self

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.

Report progress object

Parameters:

  • object (Object)

Returns:

  • (self)


15
16
17
18
# File 'lib/mutant/reporter/cli.rb', line 15

def progress(object)
  Progress.run(output, object)
  self
end

#report(object) ⇒ self

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.

Report object

Parameters:

  • object (Object)

Returns:

  • (self)


41
42
43
44
# File 'lib/mutant/reporter/cli.rb', line 41

def report(object)
  Report.run(output, object)
  self
end

#warn(message) ⇒ self

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.

Report warning

Parameters:

  • message (String)

Returns:

  • (self)


28
29
30
31
# File 'lib/mutant/reporter/cli.rb', line 28

def warn(message)
  output.puts(message)
  self
end