lib/parallel_tests/cli.rb in parallel_tests-0.7.0.rc1 vs lib/parallel_tests/cli.rb in parallel_tests-0.7.0.rc2
- old
+ new
@@ -63,11 +63,11 @@
test_results.any? { |result| result[:exit_status] != 0 }
end
def self.load_runner_for(lib)
require "parallel_tests/#{lib}/runner"
- eval("ParallelTests::#{lib.capitalize}::Runner")
+ eval("ParallelTests::#{lib.capitalize.sub('Rspec','RSpec')}::Runner")
end
def self.parse_options!(argv)
options = {}
OptionParser.new do |opts|
@@ -87,10 +87,10 @@
options[:single_process] ||= []
options[:single_process] << /#{pattern}/
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) / spec / cucumber") { |type| options[:type] = type }
+ opts.on("-t", "--type [TYPE]", "test(default) / rspec / cucumber") { |type| options[:type] = type }
opts.on("--non-parallel", "execute same commands but do not in parallel, needs --exec") { options[:non_parallel] = true }
opts.on("--chunk-timeout [TIMEOUT]", "timeout before re-printing the output of a child-process") { |timeout| options[:chunk_timeout] = timeout.to_f }
opts.on('-v', '--version', 'Show Version') { puts ParallelTests::VERSION; exit }
opts.on("-h", "--help", "Show this.") { puts opts; exit }
end.parse!(argv)