From add2269d10af92401cefda5daed1bce1f5f31124 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Sat, 2 May 2015 23:23:39 +0000 Subject: [PATCH] Fix progressive report order for less noise --- lib/mutant/reporter/cli/printer.rb | 4 ++-- spec/unit/mutant/reporter/cli_spec.rb | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) 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