You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-e, --exec COMMAND execute this code parallel and with ENV['TEST_ENV_NUMBER']
272
-
--exec-args COMMAND execute this code parallel with test files as arguments, Ex.
271
+
-e, --exec COMMAND execute COMMAND in parallel and with ENV['TEST_ENV_NUMBER']
272
+
--exec-args COMMAND execute COMMAND in parallel with test files as arguments, for example:
273
273
$ parallel_tests --exec-args echo
274
-
echo spec/a_spec.rb spec/b_spec.rb
274
+
> echo spec/a_spec.rb spec/b_spec.rb
275
275
-o, --test-options 'OPTIONS' execute test commands with those options
276
276
-t, --type TYPE test(default) / rspec / cucumber / spinach
277
277
--suffix PATTERN override built in test file pattern (should match suffix):
@@ -291,14 +291,17 @@ Options are:
291
291
--unknown-runtime SECONDS Use given number as unknown runtime (otherwise use average time)
292
292
--first-is-1 Use "1" as TEST_ENV_NUMBER to not reuse the default test environment
293
293
--fail-fast Stop all groups when one group fails (best used with --test-options '--fail-fast' if supported
294
-
--test-file-limit LIMIT Limit to this number of files per test run by batching (for windows set to ~100 to stay below 8192 max command limit, might have bugs from reusing test-env-number and summarizing partial results)
294
+
--test-file-limit LIMIT Limit to this number of files per test run by batching
295
+
(for windows set to ~100 to stay below 8192 max command limit, might have bugs from reusing test-env-number
296
+
and summarizing partial results)
295
297
--verbose Print debug output
296
298
--verbose-command Combines options --verbose-process-command and --verbose-rerun-command
297
299
--verbose-process-command Print the command that will be executed by each process before it begins
298
300
--verbose-rerun-command After a process fails, print the command executed by that process
299
301
--quiet Print only tests output
300
302
-v, --version Show Version
301
303
-h, --help Show this.
304
+
<!-- rake readme -->
302
305
303
306
You can run any kind of code in parallel with -e / --exec
override built in test file pattern (should match suffix):
294
303
'_spec.rb$' - matches rspec files
295
304
'_(test|spec).rb$' - matches test or spec files
296
305
TEXT
297
306
){ |pattern| options[:suffix]=/#{pattern}/}
307
+
298
308
opts.on("--serialize-stdout","Serialize stdout output, nothing will be written until everything is done"){options[:serialize_stdout]=true}
299
309
opts.on("--prefix-output-with-test-env-number","Prefixes test env number to the output when not using --serialize-stdout"){options[:prefix_output_with_test_env_number]=true}
300
310
opts.on("--combine-stderr","Combine stderr into stdout, useful in conjunction with --serialize-stdout"){options[:combine_stderr]=true}
@@ -308,7 +318,17 @@ def parse_options!(argv)
308
318
opts.on("--unknown-runtime SECONDS",Float,"Use given number as unknown runtime (otherwise use average time)"){ |time| options[:unknown_runtime]=time}
309
319
opts.on("--first-is-1","Use \"1\" as TEST_ENV_NUMBER to not reuse the default test environment"){options[:first_is_1]=true}
310
320
opts.on("--fail-fast","Stop all groups when one group fails (best used with --test-options '--fail-fast' if supported"){options[:fail_fast]=true}
311
-
opts.on("--test-file-limit LIMIT",Integer,"Limit to this number of files per test run by batching (for windows set to ~100 to stay below 8192 max command limit, might have bugs from reusing test-env-number and summarizing partial results)"){ |limit| options[:test_file_limit]=limit}
321
+
322
+
opts.on(
323
+
"--test-file-limit LIMIT",
324
+
Integer,
325
+
heredoc(<<~TEXT,newline_padding)
326
+
Limit to this number of files per test run by batching
327
+
(for windows set to ~100 to stay below 8192 max command limit, might have bugs from reusing test-env-number
opts.on("--verbose-command","Combines options --verbose-process-command and --verbose-rerun-command"){options.merge!verbose_process_command: true,verbose_rerun_command: true}
314
334
opts.on("--verbose-process-command","Print the command that will be executed by each process before it begins"){options[:verbose_process_command]=true}
0 commit comments