spec/unit/mutant/reporter/cli/printer/status_spec.rb in mutant-0.8.10 vs spec/unit/mutant/reporter/cli/printer/status_spec.rb in mutant-0.8.11
- old
+ new
@@ -9,11 +9,10 @@
it_reports <<-REPORT
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
- Expect Coverage: 100.00%
Jobs: 1
Includes: []
Requires: []
Subjects: 1
Mutations: 2
@@ -23,50 +22,22 @@
Runtime: 4.00s
Killtime: 0.00s
Overhead: Inf%
Mutations/s: 0.00
Coverage: 100.00%
- Expected: 100.00%
Active subjects: 0
REPORT
-
- context 'on non default coverage expectation' do
- with(:config) { { expected_coverage: 0.1r } }
-
- it_reports <<-REPORT
- Mutant configuration:
- Matcher: #<Mutant::Matcher::Config empty>
- Integration: Mutant::Integration::Null
- Expect Coverage: 10.00%
- Jobs: 1
- Includes: []
- Requires: []
- Subjects: 1
- Mutations: 2
- Results: 0
- Kills: 0
- Alive: 0
- Runtime: 4.00s
- Killtime: 0.00s
- Overhead: Inf%
- Mutations/s: 0.00
- Coverage: 100.00%
- Expected: 10.00%
- Active subjects: 0
- REPORT
- end
end
context 'with scheduler active on one subject' do
context 'without progress' do
with(:status) { { active_jobs: [].to_set } }
it_reports(<<-REPORT)
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
- Expect Coverage: 100.00%
Jobs: 1
Includes: []
Requires: []
Subjects: 1
Mutations: 2
@@ -76,11 +47,10 @@
Runtime: 4.00s
Killtime: 2.00s
Overhead: 100.00%
Mutations/s: 0.50
Coverage: 100.00%
- Expected: 100.00%
Active subjects: 0
REPORT
end
context 'with progress' do
@@ -91,11 +61,10 @@
it_reports(<<-REPORT)
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
- Expect Coverage: 100.00%
Jobs: 1
Includes: []
Requires: []
Subjects: 1
Mutations: 2
@@ -105,11 +74,10 @@
Runtime: 4.00s
Killtime: 2.00s
Overhead: 100.00%
Mutations/s: 0.50
Coverage: 50.00%
- Expected: 100.00%
Active Jobs:
0: evil:subject-a:d27d2
1: evil:subject-a:d5a9d
Active subjects: 1
subject-a mutations: 2
@@ -121,11 +89,10 @@
context 'on success' do
it_reports(<<-REPORT)
Mutant configuration:
Matcher: #<Mutant::Matcher::Config empty>
Integration: Mutant::Integration::Null
- Expect Coverage: 100.00%
Jobs: 1
Includes: []
Requires: []
Subjects: 1
Mutations: 2
@@ -135,10 +102,9 @@
Runtime: 4.00s
Killtime: 2.00s
Overhead: 100.00%
Mutations/s: 0.50
Coverage: 100.00%
- Expected: 100.00%
Active Jobs:
0: evil:subject-a:d27d2
1: evil:subject-a:d5a9d
Active subjects: 1
subject-a mutations: 2