mutant 0.10.6 → 0.10.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mutant.rb +7 -4
- data/lib/mutant/cli/command.rb +1 -1
- data/lib/mutant/cli/command/{run.rb → environment.rb} +10 -45
- data/lib/mutant/cli/command/environment/run.rb +56 -0
- data/lib/mutant/cli/command/environment/show.rb +29 -0
- data/lib/mutant/cli/command/root.rb +7 -3
- data/lib/mutant/config.rb +61 -34
- data/lib/mutant/env.rb +14 -4
- data/lib/mutant/integration.rb +16 -10
- data/lib/mutant/integration/null.rb +0 -1
- data/lib/mutant/isolation.rb +11 -48
- data/lib/mutant/isolation/fork.rb +107 -40
- data/lib/mutant/isolation/none.rb +18 -5
- data/lib/mutant/license/subscription/commercial.rb +2 -3
- data/lib/mutant/license/subscription/opensource.rb +0 -1
- data/lib/mutant/matcher/method/instance.rb +0 -2
- data/lib/mutant/mutator/node/send.rb +1 -1
- data/lib/mutant/parallel.rb +0 -1
- data/lib/mutant/parallel/worker.rb +0 -2
- data/lib/mutant/reporter/cli.rb +0 -2
- data/lib/mutant/reporter/cli/printer/config.rb +9 -5
- data/lib/mutant/reporter/cli/printer/coverage_result.rb +19 -0
- data/lib/mutant/reporter/cli/printer/env_progress.rb +2 -0
- data/lib/mutant/reporter/cli/printer/isolation_result.rb +19 -35
- data/lib/mutant/reporter/cli/printer/mutation_result.rb +4 -9
- data/lib/mutant/reporter/cli/printer/subject_result.rb +2 -2
- data/lib/mutant/result.rb +91 -30
- data/lib/mutant/runner/sink.rb +12 -5
- data/lib/mutant/timer.rb +60 -11
- data/lib/mutant/transform.rb +25 -21
- data/lib/mutant/version.rb +1 -1
- data/lib/mutant/warnings.rb +0 -1
- data/lib/mutant/world.rb +15 -0
- metadata +6 -6
- data/lib/mutant/reporter/cli/printer/mutation_progress_result.rb +0 -28
- data/lib/mutant/reporter/cli/printer/subject_progress.rb +0 -58
- data/lib/mutant/reporter/cli/printer/test_result.rb +0 -32
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Mutant
|
4
|
-
class Reporter
|
5
|
-
class CLI
|
6
|
-
class Printer
|
7
|
-
# Test result reporter
|
8
|
-
class TestResult < self
|
9
|
-
|
10
|
-
delegate :tests, :runtime
|
11
|
-
|
12
|
-
STATUS_FORMAT = '- %d @ runtime: %s'
|
13
|
-
OUTPUT_HEADER = 'Test Output:'
|
14
|
-
TEST_FORMAT = ' - %s'
|
15
|
-
|
16
|
-
# Run test result reporter
|
17
|
-
#
|
18
|
-
# @return [undefined]
|
19
|
-
def run
|
20
|
-
info(STATUS_FORMAT, tests.length, runtime)
|
21
|
-
tests.each do |test|
|
22
|
-
info(TEST_FORMAT, test.identification)
|
23
|
-
end
|
24
|
-
puts(OUTPUT_HEADER)
|
25
|
-
puts(object.output)
|
26
|
-
end
|
27
|
-
|
28
|
-
end # TestResult
|
29
|
-
end # Printer
|
30
|
-
end # CLI
|
31
|
-
end # Reporter
|
32
|
-
end # Mutant
|