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

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

Overview

Test result reporter

Constant Summary

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

NL

Instance Method Summary collapse

Methods inherited from Mutant::Reporter::CLI::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 test result reporter

Returns:

  • (self)

598
599
600
601
602
603
604
605
# File 'lib/mutant/reporter/cli/printer.rb', line 598

def run
  status('- %d @ runtime: %s', tests.length, runtime)
  tests.each do |test|
    puts("  - #{test.identification}")
  end
  puts('Test Output:')
  puts(object.output)
end

#success?false

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.

Test if test result is successful

Only used to determine color.

Returns:

  • (false)

615
616
617
# File 'lib/mutant/reporter/cli/printer.rb', line 615

def success?
  false
end