turbo_tests 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/fixtures/rspec/pending_exceptions_spec.rb +15 -0
- data/lib/turbo_tests.rb +2 -1
- data/lib/turbo_tests/json_rows_formatter.rb +1 -2
- data/lib/turbo_tests/reporter.rb +1 -1
- data/lib/turbo_tests/version.rb +1 -1
- data/turbo_tests.gemspec +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8a0dc37755b687ea503d265d864eb959d2bda3668e3f21c4b09af48e6fb852a
|
4
|
+
data.tar.gz: 8399b27819ae06f123b0695754fe074cb8819d385cd2a4d932c12b9f30a88124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cae6d818935454f40984af484fa8d87763732b578a4bb901679434c40a0d5dc152c671726523877247375c4572849c907e4190faab6e0681abb3b2d8db50e1bd
|
7
|
+
data.tar.gz: 41a44281ddb35a3440eaa633bafecd7e9bb585acf132e69180a521e68148a9feb10121ac1a7bd38c38892d56c0ba326215bacd590380355ece8b02715667697b
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
turbo_tests (1.2.
|
4
|
+
turbo_tests (1.2.5)
|
5
5
|
bundler
|
6
6
|
parallel_tests (~> 3.3)
|
7
|
-
rspec (~> 3.10
|
7
|
+
rspec (~> 3.10)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -13,12 +13,12 @@ GEM
|
|
13
13
|
diff-lcs (1.4.4)
|
14
14
|
method_source (1.0.0)
|
15
15
|
parallel (1.20.1)
|
16
|
-
parallel_tests (3.
|
16
|
+
parallel_tests (3.7.0)
|
17
17
|
parallel
|
18
|
-
pry (0.14.
|
18
|
+
pry (0.14.1)
|
19
19
|
coderay (~> 1.1)
|
20
20
|
method_source (~> 1.0)
|
21
|
-
rake (13.0.
|
21
|
+
rake (13.0.6)
|
22
22
|
rspec (3.10.0)
|
23
23
|
rspec-core (~> 3.10.0)
|
24
24
|
rspec-expectations (~> 3.10.0)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
RSpec.describe "Fixture of spec file with pending failed examples" do
|
2
|
+
it "is implemented but skipped with 'pending'" do
|
3
|
+
pending("TODO: skipped with 'pending'")
|
4
|
+
|
5
|
+
expect(2).to eq(3)
|
6
|
+
end
|
7
|
+
|
8
|
+
it "is implemented but skipped with 'skip'", skip: "TODO: skipped with 'skip'" do
|
9
|
+
expect(100).to eq(500)
|
10
|
+
end
|
11
|
+
|
12
|
+
xit "is implemented but skipped with 'xit'" do
|
13
|
+
expect(1).to eq(42)
|
14
|
+
end
|
15
|
+
end
|
data/lib/turbo_tests.rb
CHANGED
@@ -36,7 +36,7 @@ module TurboTests
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
FakeExecutionResult = Struct.new(:example_skipped?, :pending_message, :status, :pending_fixed?, :exception)
|
39
|
+
FakeExecutionResult = Struct.new(:example_skipped?, :pending_message, :status, :pending_fixed?, :exception, :pending_exception)
|
40
40
|
class FakeExecutionResult
|
41
41
|
def self.from_obj(obj)
|
42
42
|
new(
|
@@ -44,6 +44,7 @@ module TurboTests
|
|
44
44
|
obj[:pending_message],
|
45
45
|
obj[:status].to_sym,
|
46
46
|
obj[:pending_fixed?],
|
47
|
+
FakeException.from_obj(obj[:exception]),
|
47
48
|
FakeException.from_obj(obj[:exception])
|
48
49
|
)
|
49
50
|
end
|
@@ -29,7 +29,6 @@ module TurboTests
|
|
29
29
|
:example_pending,
|
30
30
|
:example_group_started,
|
31
31
|
:example_group_finished,
|
32
|
-
:example_pending,
|
33
32
|
:message,
|
34
33
|
:seed
|
35
34
|
)
|
@@ -121,7 +120,7 @@ module TurboTests
|
|
121
120
|
pending_message: result.pending_message,
|
122
121
|
status: result.status,
|
123
122
|
pending_fixed?: result.pending_fixed?,
|
124
|
-
exception: exception_to_json(result.exception)
|
123
|
+
exception: exception_to_json(result.exception || result.pending_exception)
|
125
124
|
}
|
126
125
|
end
|
127
126
|
|
data/lib/turbo_tests/reporter.rb
CHANGED
data/lib/turbo_tests/version.rb
CHANGED
data/turbo_tests.gemspec
CHANGED
@@ -14,9 +14,9 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.metadata["source_code_uri"] = "https://github.com/serpapi/turbo_tests"
|
15
15
|
spec.metadata["changelog_uri"] = "https://github.com/serpapi/turbo_tests/releases"
|
16
16
|
|
17
|
-
spec.required_ruby_version = ">= 2.4
|
17
|
+
spec.required_ruby_version = ">= 2.4"
|
18
18
|
|
19
|
-
spec.add_dependency "rspec", "~> 3.10
|
19
|
+
spec.add_dependency "rspec", "~> 3.10"
|
20
20
|
spec.add_dependency "parallel_tests", "~> 3.3"
|
21
21
|
|
22
22
|
spec.add_development_dependency "pry", "~> 0.14"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbo_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Zub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.10
|
19
|
+
version: '3.10'
|
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: 3.10
|
26
|
+
version: '3.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: parallel_tests
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- Rakefile
|
88
88
|
- bin/turbo_tests
|
89
89
|
- fixtures/rspec/errors_outside_of_examples_spec.rb
|
90
|
+
- fixtures/rspec/pending_exceptions_spec.rb
|
90
91
|
- lib/turbo_tests.rb
|
91
92
|
- lib/turbo_tests/cli.rb
|
92
93
|
- lib/turbo_tests/json_rows_formatter.rb
|
@@ -110,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
111
|
requirements:
|
111
112
|
- - ">="
|
112
113
|
- !ruby/object:Gem::Version
|
113
|
-
version: 2.4
|
114
|
+
version: '2.4'
|
114
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
116
|
requirements:
|
116
117
|
- - ">="
|