lib/parallel_tests/cli.rb in parallel_tests-4.2.1 vs lib/parallel_tests/cli.rb in parallel_tests-4.2.2

- old
+ new

@@ -242,11 +242,18 @@ Process 2 will contain 3_spec.rb Process 3 will contain all other specs TEXT ) { |groups| options[:specify_groups] = groups } - opts.on("--only-group INT[,INT]", Array) { |groups| options[:only_group] = groups.map(&:to_i) } + opts.on( + "--only-group INT[,INT]", + Array, + <<~TEXT.rstrip.split("\n").join("\n#{newline_padding}") + Only run the given group numbers. + Changes `--group-by` default to 'filesize'. + TEXT + ) { |groups| options[:only_group] = groups.map(&:to_i) } opts.on("-e", "--exec [COMMAND]", "execute this code parallel and with ENV['TEST_ENV_NUMBER']") { |arg| options[:execute] = Shellwords.shellsplit(arg) } opts.on("-o", "--test-options '[OPTIONS]'", "execute test commands with those options") { |arg| options[:test_options] = Shellwords.shellsplit(arg) } opts.on("-t", "--type [TYPE]", "test(default) / rspec / cucumber / spinach") do |type| @runner = load_runner(type) @@ -256,10 +263,10 @@ end opts.on( "--suffix [PATTERN]", <<~TEXT.rstrip.split("\n").join("\n#{newline_padding}") override built in test file pattern (should match suffix): - '_spec\.rb$' - matches rspec files + '_spec.rb$' - matches rspec files '_(test|spec).rb$' - matches test or spec files TEXT ) { |pattern| options[:suffix] = /#{pattern}/ } opts.on("--serialize-stdout", "Serialize stdout output, nothing will be written until everything is done") { options[:serialize_stdout] = true } 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 }