diff --git a/lib/mutant/reporter/cli/printer.rb b/lib/mutant/reporter/cli/printer.rb index 62827f89..70f7a262 100644 --- a/lib/mutant/reporter/cli/printer.rb +++ b/lib/mutant/reporter/cli/printer.rb @@ -147,9 +147,9 @@ module Mutant # def run visit(EnvProgress, payload) + job_status info('Active subjects: %d', active_subject_results.length) visit_collection(SubjectProgress, active_subject_results) - job_status self end @@ -419,10 +419,10 @@ module Mutant # def run puts("#{subject.identification} mutations: #{amount_mutations}") - print_tests print_mutation_results print_progress_bar_finish print_stats + print_tests self end diff --git a/spec/unit/mutant/reporter/cli_spec.rb b/spec/unit/mutant/reporter/cli_spec.rb index 0b43a76f..0f2f64d9 100644 --- a/spec/unit/mutant/reporter/cli_spec.rb +++ b/spec/unit/mutant/reporter/cli_spec.rb @@ -232,13 +232,13 @@ RSpec.describe Mutant::Reporter::CLI do Overhead: 100.00% Coverage: 50.00% Expected: 100.00% - Active subjects: 1 - subject-a mutations: 2 - - test-a - F. - (01/02) 50% - killtime: 2.00s runtime: 2.00s overhead: 0.00s Active Jobs: 0: evil:subject-a:d27d2 + Active subjects: 1 + subject-a mutations: 2 + F. + (01/02) 50% - killtime: 2.00s runtime: 2.00s overhead: 0.00s + - test-a REPORT end @@ -260,13 +260,13 @@ RSpec.describe Mutant::Reporter::CLI do Overhead: 100.00% Coverage: 100.00% Expected: 100.00% - Active subjects: 1 - subject-a mutations: 2 - - test-a - .. - (02/02) 100% - killtime: 2.00s runtime: 2.00s overhead: 0.00s Active Jobs: 0: evil:subject-a:d27d2 + Active subjects: 1 + subject-a mutations: 2 + .. + (02/02) 100% - killtime: 2.00s runtime: 2.00s overhead: 0.00s + - test-a REPORT end end