parallel_tests 3.3.0 → 3.4.0
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 +3 -2
- data/lib/parallel_tests/rspec/runner.rb +16 -0
- data/lib/parallel_tests/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd8878310c757d2a906bbf5ca62b68e21941cc79472a9833944f88087449c229
|
4
|
+
data.tar.gz: d55a5ac186f1c16d9568b8f6bb145e0016bafc1c2fb9748593e96997eaf2034c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f01821e38506525feaafb8a9ff5a480ab1f6f2b0bed849088d72682a699f82ae50bb2a78b94526f243a65c2474ff8f2d3a06c204b44431a7687d877cbbc91dd8
|
7
|
+
data.tar.gz: 2823702fc7e5d047a69c57d3ee4c0b72afbb51603d58e34a3656899d0026a4b749e94494b9edf234fdcc5fd81bae59dfba55f920d777f5f7d1f7c21fb5219552
|
data/Readme.md
CHANGED
@@ -205,9 +205,9 @@ Options are:
|
|
205
205
|
default - runtime when runtime log is filled otherwise filesize
|
206
206
|
-m, --multiply-processes [FLOAT] use given number as a multiplier of processes to run
|
207
207
|
-s, --single [PATTERN] Run all matching files in the same process
|
208
|
-
-i, --isolate Do not run any other tests in the group used by --single(-s).
|
208
|
+
-i, --isolate Do not run any other tests in the group used by --single(-s).
|
209
209
|
Automatically turned on if --isolate-n is set above 0.
|
210
|
-
--isolate-n Number of processes for isolated groups. Default to 1 when --isolate is on.
|
210
|
+
--isolate-n Number of processes for isolated groups. Default to 1 when --isolate is on.
|
211
211
|
--only-group INT[, INT]
|
212
212
|
-e, --exec [COMMAND] execute this code parallel and with ENV['TEST_ENV_NUMBER']
|
213
213
|
-o, --test-options '[OPTIONS]' execute test commands with those options
|
@@ -378,6 +378,7 @@ inspired by [pivotal labs](https://blog.pivotal.io/labs/labs/parallelize-your-rs
|
|
378
378
|
- [Calaway](https://github.com/calaway)
|
379
379
|
- [alboyadjian](https://github.com/alboyadjian)
|
380
380
|
- [Nathan Broadbent](https://github.com/ndbroadbent)
|
381
|
+
- [Vikram B Kumar](https://github.com/v-kumar)
|
381
382
|
|
382
383
|
[Michael Grosser](http://grosser.it)<br/>
|
383
384
|
michael@grosser.it<br/>
|
@@ -48,6 +48,22 @@ module ParallelTests
|
|
48
48
|
"#{clean} --seed #{seed}"
|
49
49
|
end
|
50
50
|
|
51
|
+
# Summarize results from threads and colorize results based on failure and pending counts.
|
52
|
+
#
|
53
|
+
def summarize_results(results)
|
54
|
+
text = super
|
55
|
+
return text unless $stdout.tty?
|
56
|
+
sums = sum_up_results(results)
|
57
|
+
color =
|
58
|
+
if sums['failure'].positive?
|
59
|
+
31 # red
|
60
|
+
elsif sums['pending'].positive?
|
61
|
+
33 # yellow
|
62
|
+
else
|
63
|
+
32 # green
|
64
|
+
end
|
65
|
+
"\e[#{color}m#{text}\e[0m"
|
66
|
+
end
|
51
67
|
|
52
68
|
private
|
53
69
|
|
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: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parallel
|
@@ -68,8 +68,8 @@ licenses:
|
|
68
68
|
- MIT
|
69
69
|
metadata:
|
70
70
|
bug_tracker_uri: https://github.com/grosser/parallel_tests/issues
|
71
|
-
documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.
|
72
|
-
source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.
|
71
|
+
documentation_uri: https://github.com/grosser/parallel_tests/blob/v3.4.0/Readme.md
|
72
|
+
source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.4.0
|
73
73
|
wiki_uri: https://github.com/grosser/parallel_tests/wiki
|
74
74
|
post_install_message:
|
75
75
|
rdoc_options: []
|