mutant-rspec 0.10.3 → 0.10.8
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 +3 -8
- 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: 004f8416447e17219a4f5fd45b069856e350654db8dd46175878d4eddaf8a8fe
|
4
|
+
data.tar.gz: b580abb7bbbe6fb82d8ee8b3bc1b955582ae6dc8fddd0c829c4f508d9a20b268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c1e365d8677feffc4ce6f706ecd275bdee058674845d4f28abce64ebe36b5de7691bcd82dcf6803b3353a9b423c1680015aa119ec66ad3b92d9688cb1c34d83
|
7
|
+
data.tar.gz: 3b4d59ca9b69ef6d25b77332766a80c2b355c667b85e689038c010b387dc9e49ff2bf042e973273b22da1b91c5e512df27f5926bb099f53247084e92f0e47bb6
|
@@ -35,7 +35,6 @@ module Mutant
|
|
35
35
|
# @return [undefined]
|
36
36
|
def initialize(*)
|
37
37
|
super
|
38
|
-
@output = StringIO.new
|
39
38
|
@runner = RSpec::Core::Runner.new(RSpec::Core::ConfigurationOptions.new(CLI_OPTIONS))
|
40
39
|
@world = RSpec.world
|
41
40
|
end
|
@@ -44,7 +43,7 @@ module Mutant
|
|
44
43
|
#
|
45
44
|
# @return [self]
|
46
45
|
def setup
|
47
|
-
@runner.setup($stderr,
|
46
|
+
@runner.setup($stderr, $stdout)
|
48
47
|
self
|
49
48
|
end
|
50
49
|
memoize :setup
|
@@ -54,18 +53,14 @@ module Mutant
|
|
54
53
|
# @param [Enumerable<Mutant::Test>] tests
|
55
54
|
#
|
56
55
|
# @return [Result::Test]
|
57
|
-
#
|
58
|
-
# rubocop:disable Metrics/MethodLength
|
59
56
|
def call(tests)
|
60
57
|
examples = tests.map(&all_tests_index.method(:fetch))
|
61
58
|
filter_examples(&examples.method(:include?))
|
62
|
-
start =
|
59
|
+
start = timer.now
|
63
60
|
passed = @runner.run_specs(@world.ordered_example_groups).equal?(EXIT_SUCCESS)
|
64
|
-
@output.rewind
|
65
61
|
Result::Test.new(
|
66
|
-
output: @output.read,
|
67
62
|
passed: passed,
|
68
|
-
runtime:
|
63
|
+
runtime: timer.now - start,
|
69
64
|
tests: tests
|
70
65
|
)
|
71
66
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-22 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.8
|
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.8
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|