rspec-abq 1.0.2 → 1.0.3
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 +4 -4
- data/README.md +8 -2
- data/lib/rspec/abq/version.rb +1 -1
- data/lib/rspec/abq.rb +6 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc4f520d1b869e03a972436e4b3eeddb42ce1c3a88db2b944e7ce8d654ac6c25
|
4
|
+
data.tar.gz: 8608c3bc156d2789596d3b8606aa7d5a164ddbefce1d58ca1243dddf9a006bb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac6d181459d36293e661b141f2c0a685ed9a40feb70a877f0fb9b645ba58e4e1d73397c7e1c264545709df3ef610ee42170cf4b1a703d05dc0f50c53f919bb33
|
7
|
+
data.tar.gz: fc5e6cc4d5435fd27552de89b6bfd1cf0a59a077b5f571c20c44788638dbcfb8a9e5cc449338b87a10dc9ccf5b9b8f5b25efb031e16f36d7d8c9de8e887a1203
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ end
|
|
16
16
|
|
17
17
|
And then execute:
|
18
18
|
|
19
|
-
```
|
19
|
+
```bash
|
20
20
|
bundle
|
21
21
|
```
|
22
22
|
|
@@ -24,10 +24,16 @@ bundle
|
|
24
24
|
|
25
25
|
Use the included binary with abq:
|
26
26
|
|
27
|
-
```
|
27
|
+
```bash
|
28
28
|
abq test -- bundle exec rspec
|
29
29
|
```
|
30
30
|
|
31
|
+
If abq displays "Worker quit before sending protocol version", try adding this line to your application's `spec/spec_helper.rb`:
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
require 'rspec/abq'
|
35
|
+
```
|
36
|
+
|
31
37
|
## Compatibility
|
32
38
|
|
33
39
|
This gem is actively tested against rubies 2.6-3.1 and rspecs 3.5-3.12
|
data/lib/rspec/abq/version.rb
CHANGED
data/lib/rspec/abq.rb
CHANGED
@@ -41,7 +41,12 @@ module RSpec
|
|
41
41
|
NATIVE_RUNNER_SPECIFICATION = {
|
42
42
|
type: "abq_native_runner_specification",
|
43
43
|
name: "rspec-abq",
|
44
|
-
version: RSpec::Abq::VERSION
|
44
|
+
version: RSpec::Abq::VERSION,
|
45
|
+
test_framework: "rspec",
|
46
|
+
test_framework_version: RSpec::Core::Version::STRING,
|
47
|
+
language: RUBY_ENGINE,
|
48
|
+
language_version: "#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}",
|
49
|
+
host: RUBY_DESCRIPTION
|
45
50
|
}
|
46
51
|
|
47
52
|
# The [rpsec-abq spawned message](https://www.notion.so/rwx/ABQ-Worker-Native-Test-Runner-IPC-Interface-0959f5a9144741d798ac122566a3d887#8587ee4fd01e41ec880dcbe212562172).
|
@@ -101,14 +106,6 @@ module RSpec
|
|
101
106
|
# before abq can start workers, it asks for a manifest
|
102
107
|
if !!ENV[ABQ_GENERATE_MANIFEST] # the abq worker will set this env var if it needs a manifest
|
103
108
|
RSpec::Abq::Manifest.write_manifest(RSpec.world.ordered_example_groups, RSpec.configuration.seed, RSpec.configuration.ordering_registry)
|
104
|
-
# ... Maybe it's fine to just exit(0)
|
105
|
-
if Gem::Version.new(RSpec::Core::Version::STRING) >= Gem::Version.new("3.10.0")
|
106
|
-
RSpec.world.wants_to_quit = true # ask rspec to exit
|
107
|
-
RSpec.configuration.error_exit_code = 0
|
108
|
-
RSpec.world.non_example_failure = true # exit has nothing to do with tests
|
109
|
-
else
|
110
|
-
exit(0)
|
111
|
-
end
|
112
109
|
return true
|
113
110
|
end
|
114
111
|
|