module ParallelTests::Tasks
def run_in_parallel(cmd, options={})
def run_in_parallel(cmd, options={}) count = " -n #{options[:count]}" unless options[:count].to_s.empty? executable = File.expand_path("../../../bin/parallel_test", __FILE__) command = "#{Shellwords.escape executable} --exec '#{cmd}'#{count}#{' --non-parallel' if options[:non_parallel]}" abort unless system(command) end