Class: Mutant::Reporter::CLI::Progress::Subject

Inherits:
Mutant::Reporter::CLI::Progress show all
Defined in:
lib/mutant/reporter/cli/progress/subject.rb

Overview

Reporter for subject runners

Constant Summary collapse

FORMAT =
'(%02d/%02d) %3d%% - %0.02fs'.freeze

Instance Method Summary collapse

Methods inherited from Mutant::Reporter::CLI::Printer

run

Methods included from Delegator

included

Instance Method Details

#runundefined

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 printer

Returns:

  • (undefined)


20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/mutant/reporter/cli/progress/subject.rb', line 20

def run
  if running?
    puts(subject.identification)
    tests.each do |test|
      puts "- #{test.identification}"
    end
  else
    print_progress_bar_finish
    print_stats
  end
  self
end