lib/parallel_tests/cli.rb in parallel_tests-0.16.16 vs lib/parallel_tests/cli.rb in parallel_tests-0.16.17
- old
+ new
@@ -160,10 +160,11 @@
options
end
def load_runner(type)
require "parallel_tests/#{type}/runner"
- klass_name = "ParallelTests::#{type.capitalize.sub("Rspec", "RSpec")}::Runner"
+ runner_classname = type.split("_").map(&:capitalize).join.sub("Rspec", "RSpec")
+ klass_name = "ParallelTests::#{runner_classname}::Runner"
klass_name.split('::').inject(Object) { |x, y| x.const_get(y) }
end
def execute_shell_command_in_parallel(command, num_processes, options)
runs = (0...num_processes).to_a