parallel_tests 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c8f92fb8fb19ff4348080358222c4984bcc5721ddd4779433ad4b8beead46a0
4
- data.tar.gz: e3fb4beed5a5391401e8fcd729a5308c274ac2ddc61b3cd548e655a25009ba5d
3
+ metadata.gz: e0830430a73f9d4366617a98f2014e8b737b8f987a284ac959b0e83e8b0d7da1
4
+ data.tar.gz: 358bd27a736baec67ef7775d16d8dd2b935f69f25ca71d7065e3343fea8feee6
5
5
  SHA512:
6
- metadata.gz: bff5dfd53ba1acc4bb654d17f49d9d9deb1c86eff894232fc698dd3100fd2fbb7dd15ad11c1ebdc501438003ce62b2f65a7befcbc970e15d2b3e340f47ebf928
7
- data.tar.gz: a5ded77e36a14a8bebea03777666e6de95f787edaf79dcf27b8d99d91c69b4779cb43e5ba5daf13f7940b2b262ad49eede907e8c9482749e30e2b272cf965245
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 Allowed percentage of missing runtimes (default = 50)
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 Print the command that will be executed by each process before it begins
229
- --verbose-rerun-command After a process fails, print the command executed by that process
230
- --quiet Print only test output
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
 
@@ -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, :in_threads => num_processes) do |item|
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 }
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '3.0.0'
2
+ VERSION = Version = '3.1.0'
3
3
  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: 3.0.0
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-06-10 00:00:00.000000000 Z
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.0.0/Readme.md
72
- source_code_uri: https://github.com/grosser/parallel_tests/tree/v3.0.0
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: []