Class: Mutant::Reporter::CLI::Printer::TestResult Private

Inherits:
Mutant::Reporter::CLI::Printer show all
Defined in:
lib/mutant/reporter/cli/printer/test_result.rb

Overview

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

Test result reporter

Constant Summary collapse

STATUS_FORMAT =

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

'- %d @ runtime: %s'
OUTPUT_HEADER =

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

'Test Output:'
TEST_FORMAT =

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

'  - %s'

Constants inherited from Mutant::Reporter::CLI::Printer

NL

Instance Method Summary collapse

Instance Method Details

#runundefined

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 test result reporter



19
20
21
22
23
24
25
26
# File 'lib/mutant/reporter/cli/printer/test_result.rb', line 19

def run
  info(STATUS_FORMAT, tests.length, runtime)
  tests.each do |test|
    info(TEST_FORMAT, test.identification)
  end
  puts(OUTPUT_HEADER)
  puts(object.output)
end