Class: Mutant::Reporter::CLI::Printer::TestResult Private
- Inherits:
-
Mutant::Reporter::CLI::Printer
- Object
- Mutant::Reporter::CLI::Printer
- Mutant::Reporter::CLI::Printer::TestResult
- 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'.freeze
- 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:'.freeze
- 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'.freeze
Constants inherited from Mutant::Reporter::CLI::Printer
Instance Method Summary collapse
-
#run ⇒ undefined
private
Run test result reporter.
Instance Method Details
#run ⇒ undefined
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
17 18 19 20 21 22 23 24 |
# File 'lib/mutant/reporter/cli/printer/test_result.rb', line 17 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 |