lib/parallel_tests/cli.rb in parallel_tests-0.13.3 vs lib/parallel_tests/cli.rb in parallel_tests-0.14.0
- old
+ new
@@ -94,11 +94,11 @@
opts.on("-n [PROCESSES]", Integer, "How many processes to use, default: available CPUs") { |n| options[:count] = n }
opts.on("-p", "--pattern [PATTERN]", "run tests matching this pattern") { |pattern| options[:pattern] = /#{pattern}/ }
opts.on("--group-by [TYPE]", <<-TEXT
group tests by:
found - order of finding files
- steps - number of cucumber steps
+ steps - number of cucumber/spinach steps
default - runtime or filesize
TEXT
) { |type| options[:group_by] = type.to_sym }
opts.on("-m [FLOAT]", "--multiply-processes [FLOAT]", Float, "use given number as a multiplier of processes to run") { |multiply| options[:multiply] = multiply }
@@ -115,10 +115,10 @@
options[:isolate] = true
end
opts.on("-e", "--exec [COMMAND]", "execute this code parallel and with ENV['TEST_ENV_NUM']") { |path| options[:execute] = path }
opts.on("-o", "--test-options '[OPTIONS]'", "execute test commands with those options") { |arg| options[:test_options] = arg }
- opts.on("-t", "--type [TYPE]", "test(default) / rspec / cucumber") do |type|
+ opts.on("-t", "--type [TYPE]", "test(default) / rspec / cucumber / spinach") do |type|
begin
@runner = load_runner(type)
rescue NameError, LoadError => e
puts "Runner for `#{type}` type has not been found! (#{e})"
abort