parallel_tests 3.0.0 → 3.1.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 +6 -5
- data/lib/parallel_tests/cli.rb +3 -1
- 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: e0830430a73f9d4366617a98f2014e8b737b8f987a284ac959b0e83e8b0d7da1
|
4
|
+
data.tar.gz: 358bd27a736baec67ef7775d16d8dd2b935f69f25ca71d7065e3343fea8feee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18e2aae47f9ceb0d933ac37bde90fda6936febcbd5381b48c70be9f923a347fc79116996f36c532ba9e3efc14bbf249dfd3eb697d89d80b85578bf9ebd9cb2ae
|
7
|
+
data.tar.gz: a6768ac48b991d984475921f64e7a7262e530303f150e9ee3e5d5322a8a34ee2a660af8ab626eda535c1be593fbf422049ac423f6bdbe0ee6292c9efc5e1603f
|
data/Readme.md
CHANGED
@@ -192,7 +192,6 @@ Setup for non-rails
|
|
192
192
|
|
193
193
|
Options are:
|
194
194
|
<!-- copy output from bundle exec ./bin/parallel_test -h -->
|
195
|
-
|
196
195
|
-n [PROCESSES] How many processes to use, default: available CPUs
|
197
196
|
-p, --pattern [PATTERN] run tests matching this regex pattern
|
198
197
|
--exclude-pattern [PATTERN] exclude tests matching this regex pattern
|
@@ -222,12 +221,14 @@ Options are:
|
|
222
221
|
--ignore-tags [PATTERN] When counting steps ignore scenarios with tags that match this pattern
|
223
222
|
--nice execute test commands with low priority.
|
224
223
|
--runtime-log [PATH] Location of previously recorded test runtimes
|
225
|
-
--allowed-missing
|
224
|
+
--allowed-missing [INT] Allowed percentage of missing runtimes (default = 50)
|
226
225
|
--unknown-runtime [FLOAT] Use given number as unknown runtime (otherwise use average time)
|
226
|
+
--first-is-1 Use "1" as TEST_ENV_NUMBER to not reuse the default test environment
|
227
|
+
--fail-fast Stop all groups when one group fails (best used with --test-options '--fail-fast' if supported
|
227
228
|
--verbose Print debug output
|
228
|
-
--verbose-process-command
|
229
|
-
--verbose-rerun-command
|
230
|
-
--quiet Print only
|
229
|
+
--verbose-process-command Displays only the command that will be executed by each process
|
230
|
+
--verbose-rerun-command When there are failures, displays the command executed by each process that failed
|
231
|
+
--quiet Print only tests output
|
231
232
|
-v, --version Show Version
|
232
233
|
-h, --help Show this.
|
233
234
|
|
data/lib/parallel_tests/cli.rb
CHANGED
@@ -42,9 +42,10 @@ module ParallelTests
|
|
42
42
|
Tempfile.open 'parallel_tests-lock' do |lock|
|
43
43
|
ParallelTests.with_pid_file do
|
44
44
|
simulate_output_for_ci options[:serialize_stdout] do
|
45
|
-
Parallel.map(items, :
|
45
|
+
Parallel.map(items, in_threads: num_processes) do |item|
|
46
46
|
result = yield(item)
|
47
47
|
reprint_output(result, lock.path) if options[:serialize_stdout]
|
48
|
+
ParallelTests.stop_all_processes if options[:fail_fast] && result[:exit_status] != 0
|
48
49
|
result
|
49
50
|
end
|
50
51
|
end
|
@@ -220,6 +221,7 @@ module ParallelTests
|
|
220
221
|
opts.on("--allowed-missing [INT]", Integer, "Allowed percentage of missing runtimes (default = 50)") { |percent| options[:allowed_missing_percent] = percent }
|
221
222
|
opts.on("--unknown-runtime [FLOAT]", Float, "Use given number as unknown runtime (otherwise use average time)") { |time| options[:unknown_runtime] = time }
|
222
223
|
opts.on("--first-is-1", "Use \"1\" as TEST_ENV_NUMBER to not reuse the default test environment") { options[:first_is_1] = true }
|
224
|
+
opts.on("--fail-fast", "Stop all groups when one group fails (best used with --test-options '--fail-fast' if supported") { options[:fail_fast] = true }
|
223
225
|
opts.on("--verbose", "Print debug output") { options[:verbose] = true }
|
224
226
|
opts.on("--verbose-process-command", "Displays only the command that will be executed by each process") { options[:verbose_process_command] = true }
|
225
227
|
opts.on("--verbose-rerun-command", "When there are failures, displays the command executed by each process that failed") { options[:verbose_rerun_command] = true }
|
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.1.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-07-24 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.1.0/Readme.md
|
72
|
+
source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.1.0
|
73
73
|
wiki_uri: https://github.com/grosser/parallel_tests/wiki
|
74
74
|
post_install_message:
|
75
75
|
rdoc_options: []
|