selective-ruby-rspec 0.1.6 → 0.1.7
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec0984fc3f7bb4c0e7b38d9f89b75d9f62e75496c9381ef9f8e588a61951360d
|
4
|
+
data.tar.gz: 861480972fafe20898532edc2ddaff16c51ebe4d9346c7b5d2524d4d83c9b703
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c6d4c9b94b2be6e7f2194554604621c2ce43aa682dc5891ff7c3021821d8f89d2627d45cf90410c51a33478ba343f316cd81ee375be8b091e7b4707c6183646
|
7
|
+
data.tar.gz: 4ba8a04a33b92b644455ff168b2a3f379412ff4f1df1bb57800875a25911f5281f2fc17c56d9f4c05975503201f45aacef4caa993416eba6e7981bb376032ba9
|
@@ -19,6 +19,7 @@ module Selective
|
|
19
19
|
self.class.runner_wrapper.report_example(notification.example)
|
20
20
|
rescue Selective::Ruby::Core::ConnectionLostError
|
21
21
|
::RSpec.world.wants_to_quit = true
|
22
|
+
self.class.runner_wrapper.connection_lost = true
|
22
23
|
self.class.runner_wrapper.remove_test_case_result(notification.example.id)
|
23
24
|
end
|
24
25
|
end
|
@@ -8,6 +8,7 @@ module Selective
|
|
8
8
|
class TestManifestError < StandardError; end
|
9
9
|
|
10
10
|
attr_reader :rspec_runner, :config, :example_callback
|
11
|
+
attr_accessor :connection_lost
|
11
12
|
|
12
13
|
FRAMEWORK = "rspec"
|
13
14
|
DEFAULT_SPEC_PATH = "./spec"
|
@@ -49,6 +50,10 @@ module Selective
|
|
49
50
|
ensure_test_phase
|
50
51
|
configure(test_case_ids)
|
51
52
|
rspec_runner.run_specs(optimize_test_filtering(test_case_ids).to_a)
|
53
|
+
if connection_lost
|
54
|
+
self.connection_lost = false
|
55
|
+
raise Selective::Ruby::Core::ConnectionLostError
|
56
|
+
end
|
52
57
|
end
|
53
58
|
|
54
59
|
def exec
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: selective-ruby-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Wood
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-02-
|
12
|
+
date: 2024-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: zeitwerk
|