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: ab16214c977e214c1768f9151be4d4eb3f89f4400279c1e269947b353792981d
4
- data.tar.gz: b19ed802819f65223e9ef8a2f262a1fd7c0d3baa70329d6e1de8fe9d5f3b7981
3
+ metadata.gz: ec0984fc3f7bb4c0e7b38d9f89b75d9f62e75496c9381ef9f8e588a61951360d
4
+ data.tar.gz: 861480972fafe20898532edc2ddaff16c51ebe4d9346c7b5d2524d4d83c9b703
5
5
  SHA512:
6
- metadata.gz: d4ba21e4eee2ded289e1d2448401b8078c10eddecb4fa6acaf489954becd0a0166d17be966dce11d96489d63fb8da890c99e1fdb961d2b18853801d536167b02
7
- data.tar.gz: 4f585e62586e20423913e0ad0940dc8c13901de771876de44766b9eb705c58e193ad87083d4df5c56be90bc6814722d6337860c99e20d46e58fa74ebc978d45e
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
@@ -3,7 +3,7 @@
3
3
  module Selective
4
4
  module Ruby
5
5
  module RSpec
6
- VERSION = "0.1.6"
6
+ VERSION = "0.1.7"
7
7
  end
8
8
  end
9
9
  end
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.6
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-06 00:00:00.000000000 Z
12
+ date: 2024-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zeitwerk