bin/parallel_test in parallel_tests-0.4.4 vs bin/parallel_test in parallel_tests-0.4.5
- old
+ new
@@ -7,20 +7,23 @@
require "parallel_tests"
options = {}
OptionParser.new do |opts|
opts.banner = <<BANNER
-Run tests in parallel, giving each process ENV['TEST_ENV_NUMBER'] ('', '2', '3', ...)
+Run all tests in parallel, giving each process ENV['TEST_ENV_NUMBER'] ('', '2', '3', ...)
+[optional] Only run selected files & folders:
+ parallel_test test/bar test/baz/xxx_text.rb
+
Options are:
BANNER
opts.on("-n [PROCESSES]", Integer, "How many processes to use, default: available CPUs"){|n| options[:count] = n }
opts.on("-p", '--path [PATH]', "run tests inside this path only"){|path| options[:path_prefix] = path }
opts.on("--no-sort", "do not sort files before running them"){ |no_sort| options[:no_sort] = no_sort }
opts.on("-m [FLOAT]", "--multiply-processes [FLOAT]", Float, "use given number as a multiplier of processes to run"){ |multiply| options[:multiply] = multiply }
opts.on("-r", '--root [PATH]', "execute test commands from this path"){|path| options[:root] = path }
opts.on("-e", '--exec [COMMAND]', "execute this code parallel and with ENV['TEST_ENV_NUM']"){|path| options[:execute] = path }
- opts.on("-o", "--test-options '[SOMETHING]'", "execute test commands with those options"){|arg| options[:test_options] = arg }
+ opts.on("-o", "--test-options '[OPTIONS]'", "execute test commands with those options"){|arg| options[:test_options] = arg }
opts.on("-t", "--type [TYPE]", "which type of tests to run? test, spec or features"){|type| options[:type] = type }
opts.on('-v', '--version', 'Show Version'){ puts ParallelTests::VERSION; exit}
opts.on("-h", "--help", "Show this.") { puts opts; exit }
end.parse!
\ No newline at end of file