Class: Mutant::Reporter::CLI::Printer::TestResult
- 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
Test result reporter
Constant Summary collapse
- STATUS_FORMAT =
'- %d @ runtime: %s'.freeze
- OUTPUT_HEADER =
'Test Output:'.freeze
- TEST_FORMAT =
' - %s'.freeze
Constants inherited from Mutant::Reporter::CLI::Printer
Instance Method Summary collapse
-
#run ⇒ undefined
private
Run test result reporter.
Methods included from Delegator
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
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 |