Sha256: 529d50971de842df05ee320073b4e91ee9507237715193cd7b98fa4eace52498

Contents?: true

Size: 745 Bytes

Versions: 21

Compression:

Stored size: 745 Bytes

Contents

# frozen_string_literal: true

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

          delegate :tests, :runtime

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

          # 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

21 entries across 21 versions & 1 rubygems

Version Path
mutant-0.10.6 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.10.5 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.10.4 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.10.1 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.10.0 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.14 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.13 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.12 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.11 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.10 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.9 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.8 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.7 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.6 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.5 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.4 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.3 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.2 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.1 lib/mutant/reporter/cli/printer/test_result.rb
mutant-0.9.0 lib/mutant/reporter/cli/printer/test_result.rb