Sha256: 320d44f8070b89bf80a23664aadb09e1d3f2cc4e20be5333d37282c3c6f6fd0f

Contents?: true

Size: 735 Bytes

Versions: 8

Compression:

Stored size: 735 Bytes

Contents

module Mutant
  class Reporter
    class CLI
      class Printer
        # Test result reporter
        class TestResult < self

          delegate :tests, :runtime

          STATUS_FORMAT = '- %d @ runtime: %s'.freeze
          OUTPUT_HEADER = 'Test Output:'.freeze
          TEST_FORMAT   = '  - %s'.freeze

          # Run test result reporter
          #
          # @return [undefined]
          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

        end # TestResult
      end # Printer
    end # CLI
  end # Reporter
end # Mutant

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.8.15 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.8.14 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.8.13 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.8.12 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.8.11 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.8.10 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.8.9 lib/mutant/reporter/cli/printer/test_result.rb