diff --git a/lib/mutant/reporter/cli/progress/env.rb b/lib/mutant/reporter/cli/progress/env.rb index 21305e77..9fc5a4a5 100644 --- a/lib/mutant/reporter/cli/progress/env.rb +++ b/lib/mutant/reporter/cli/progress/env.rb @@ -21,6 +21,7 @@ module Mutant visit(config) info 'Available Subjects: %d', object.matchable_scopes.length info 'Subjects: %d', object.subjects.length + info 'Mutations: %d', object.mutations.length end end # Progress diff --git a/spec/unit/mutant/reporter/cli_spec.rb b/spec/unit/mutant/reporter/cli_spec.rb index 6964bfef..b122c848 100644 --- a/spec/unit/mutant/reporter/cli_spec.rb +++ b/spec/unit/mutant/reporter/cli_spec.rb @@ -33,7 +33,8 @@ describe Mutant::Reporter::CLI do class: Mutant::Env, matchable_scopes: matchable_scopes, config: config, - subjects: subjects + subjects: subjects, + mutations: subjects.flat_map(&:mutations) ) end @@ -120,6 +121,7 @@ describe Mutant::Reporter::CLI do Expect Coverage: 100.00% Available Subjects: 10 Subjects: 1 + Mutations: 1 REPORT end end