class ParallelTests::Gherkin::Runner

def run_tests(test_files, process_number, num_processes, options)

def run_tests(test_files, process_number, num_processes, options)
  sanitized_test_files = test_files.map { |val| Shellwords.escape(val) }
  options = options.merge(:env => {"AUTOTEST" => "1"}) if $stdout.tty? # display color when we are in a terminal
  cmd = [
    executable,
    (runtime_logging if File.directory?(File.dirname(runtime_log))),
    cucumber_opts(options[:test_options]),
    *sanitized_test_files
  ].compact.join(" ")
  execute_command(cmd, process_number, num_processes, options)
end