parallel_tests 4.9.0 → 4.9.1
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 +1 -0
- data/lib/parallel_tests/cucumber/failures_logger.rb +16 -7
- data/lib/parallel_tests/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e815835eed992c081181431f2989b1ab60ec6a0a3c95947c90aafd5db2ebcd3
|
4
|
+
data.tar.gz: 2b70b55f1d6c8fd5980bd7373cc3d2848ff895223a55f58b669d07fe1aa396e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abbcf1ba23afba1f7d0e055d37f924ba4bd3d3e77c09a4a78a725d17158bb0553daf3ca739c41035c9d3833cd0413a40e304decf05ebe00f453ed35865c90193
|
7
|
+
data.tar.gz: 4dafcef1701e3584dae080953282b52733066bdc1415fa50aa2dc67bd91f292471dd9ff32939fdef16867226ee46aa94a6272e7705371900f320b1f196e38f95
|
data/Readme.md
CHANGED
@@ -447,6 +447,7 @@ inspired by [pivotal labs](https://blog.pivotal.io/labs/labs/parallelize-your-rs
|
|
447
447
|
- [Josh Westbrook](https://github.com/joshwestbrook)
|
448
448
|
- [Jay Dorsey](https://github.com/jaydorsey)
|
449
449
|
- [hatsu](https://github.com/hatsu38)
|
450
|
+
- [Mark Huk](https://github.com/vimutter)
|
450
451
|
|
451
452
|
[Michael Grosser](http://grosser.it)<br/>
|
452
453
|
michael@grosser.it<br/>
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
require 'cucumber/formatter/rerun'
|
3
3
|
require 'parallel_tests/gherkin/io'
|
4
|
+
require 'cucumber/events'
|
4
5
|
|
5
6
|
module ParallelTests
|
6
7
|
module Cucumber
|
@@ -9,15 +10,23 @@ module ParallelTests
|
|
9
10
|
|
10
11
|
def initialize(config)
|
11
12
|
super
|
13
|
+
|
12
14
|
@io = prepare_io(config.out_stream)
|
13
|
-
end
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
# Remove handler inherited from Cucumber::Formatter::Rerun that does not
|
17
|
+
# properly join file failures
|
18
|
+
handlers = config.event_bus.instance_variable_get(:@handlers)
|
19
|
+
handlers[::Cucumber::Events::TestRunFinished.to_s].pop
|
20
|
+
|
21
|
+
# Add our own handler
|
22
|
+
config.on_event :test_run_finished do
|
23
|
+
return if @failures.empty?
|
24
|
+
|
25
|
+
lock_output do
|
26
|
+
@failures.each do |file, lines|
|
27
|
+
lines.each do |line|
|
28
|
+
@io.print "#{file}:#{line} "
|
29
|
+
end
|
21
30
|
end
|
22
31
|
end
|
23
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.9.
|
4
|
+
version: 4.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -69,9 +69,9 @@ licenses:
|
|
69
69
|
- MIT
|
70
70
|
metadata:
|
71
71
|
bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
|
72
|
-
changelog_uri: https://github.com/grosser/parallel_tests/blob/v4.9.
|
73
|
-
documentation_uri: https://github.com/grosser/parallel_tests/blob/v4.9.
|
74
|
-
source_code_uri: https://github.com/grosser/parallel_tests/tree/v4.9.
|
72
|
+
changelog_uri: https://github.com/grosser/parallel_tests/blob/v4.9.1/CHANGELOG.md
|
73
|
+
documentation_uri: https://github.com/grosser/parallel_tests/blob/v4.9.1/Readme.md
|
74
|
+
source_code_uri: https://github.com/grosser/parallel_tests/tree/v4.9.1
|
75
75
|
wiki_uri: https://github.com/grosser/parallel_tests/wiki
|
76
76
|
rubygems_mfa_required: 'true'
|
77
77
|
post_install_message:
|