lib/parallel_tests/cli.rb in parallel_tests-1.6.2 vs lib/parallel_tests/cli.rb in parallel_tests-1.7.0

- old
+ new

@@ -154,9 +154,15 @@ rescue NameError, LoadError => e puts "Runner for `#{type}` type has not been found! (#{e})" abort end end + opts.on("--suffix [PATTERN]", <<-TEXT.gsub(/^ /, '') + override built in test file pattern (should match suffix): + '_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("--combine-stderr", "Combine stderr into stdout, useful in conjunction with --serialize-stdout") { options[:combine_stderr] = true } opts.on("--non-parallel", "execute same commands but do not in parallel, needs --exec") { options[:non_parallel] = true } opts.on("--no-symlinks", "Do not traverse symbolic links to find test files") { options[:symlinks] = false } opts.on('--ignore-tags [PATTERN]', 'When counting steps ignore scenarios with tags that match this pattern') { |arg| options[:ignore_tag_pattern] = arg }