mutant-rspec 0.10.21 → 0.10.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mutant/integration/rspec.rb +6 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52a64af7c0200dc0f62174cfef029009e4099589d62fcb19ae9a9be2b4884950
|
4
|
+
data.tar.gz: 87c194512689a9d0ef973eeda5eaccad6b02ab3f2069ec5307dd7b10a18e2e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb3f6933e707db86d050d642c704c89114c97f31dad596901cdb542727874829b9f6433a41a9bfd79128b59b0f1d249e9ee99f9b12c6b90627bdcc47f0757ebb
|
7
|
+
data.tar.gz: fc1d6d4361eb0893c17d9fd0816ce2144235e7d7cdda9744c33121c9d4620a55a077a3601d02d4b65557d4b88c3d64bda99c51bfc39457fa254b5a2d441cb419
|
@@ -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.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-16 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.26
|
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.26
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|