Class: Mutant::Reporter::CLI::Progress::Subject
- Inherits:
-
Mutant::Reporter::CLI::Progress
- Object
- Mutant::Reporter::CLI::Printer
- Mutant::Reporter::CLI::Progress
- Mutant::Reporter::CLI::Progress::Subject
- 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
-
#run ⇒ undefined
private
Run printer.
Methods inherited from Mutant::Reporter::CLI::Printer
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 printer
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_stats end self end |