mutant-rspec 0.10.24 → 0.10.29
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/integration/rspec.rb +6 -6
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2320e64942e658571a469925ad7930176ad169631a0771f7c3e5a2c6a497d8f
|
4
|
+
data.tar.gz: 5f194156b2a124c676d8f0e3464b0970546232e6048c0a5e97b57928433c9b21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5ad0167a9cd9e42d689c017a4e0bb40a35fa35b019ae2201df53e977bb3cbc576b9a34bd966dcc0fcc09c909ed225720a02b11b66dc38eeb78f6b4bbfa82df4
|
7
|
+
data.tar.gz: f144fae145eafe500ed24c8bb3eacf2c9f2cc2abdfda0f9ae73dc00ea8e10cce186777e667e1187fcbde9b1cc3ac3172f52a35f32a7db21bc07f3ff40702fcc8
|
@@ -24,7 +24,7 @@ module Mutant
|
|
24
24
|
ALL_EXPRESSION = Expression::Namespace::Recursive.new(scope_name: nil)
|
25
25
|
EXPRESSION_CANDIDATE = /\A([^ ]+)(?: )?/.freeze
|
26
26
|
EXIT_SUCCESS = 0
|
27
|
-
CLI_OPTIONS =
|
27
|
+
CLI_OPTIONS = %w[spec --fail-fast].freeze
|
28
28
|
TEST_ID_FORMAT = 'rspec:%<index>d:%<location>s/%<description>s'
|
29
29
|
|
30
30
|
private_constant(*constants(false))
|
@@ -34,8 +34,8 @@ module Mutant
|
|
34
34
|
# @return [undefined]
|
35
35
|
def initialize(*)
|
36
36
|
super
|
37
|
-
@runner
|
38
|
-
@
|
37
|
+
@runner = RSpec::Core::Runner.new(RSpec::Core::ConfigurationOptions.new(CLI_OPTIONS))
|
38
|
+
@rspec_world = RSpec.world
|
39
39
|
end
|
40
40
|
|
41
41
|
# Setup rspec integration
|
@@ -56,7 +56,7 @@ module Mutant
|
|
56
56
|
examples = tests.map(&all_tests_index)
|
57
57
|
filter_examples(&examples.public_method(:include?))
|
58
58
|
start = timer.now
|
59
|
-
passed = @runner.run_specs(@
|
59
|
+
passed = @runner.run_specs(@rspec_world.ordered_example_groups).equal?(EXIT_SUCCESS)
|
60
60
|
Result::Test.new(
|
61
61
|
passed: passed,
|
62
62
|
runtime: timer.now - start
|
@@ -114,13 +114,13 @@ module Mutant
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def all_examples
|
117
|
-
@
|
117
|
+
@rspec_world.example_groups.flat_map(&:descendants).flat_map(&:examples).select do |example|
|
118
118
|
example.metadata.fetch(:mutant, true)
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
122
122
|
def filter_examples(&predicate)
|
123
|
-
@
|
123
|
+
@rspec_world.filtered_examples.each_value do |examples|
|
124
124
|
examples.keep_if(&predicate)
|
125
125
|
end
|
126
126
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mutant
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.
|
19
|
+
version: 0.10.29
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.10.
|
26
|
+
version: 0.10.29
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.
|
76
|
+
rubygems_version: 3.1.4
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: Rspec integration for mutant
|