class ParallelTests::Gherkin::Runner

def tests_in_groups(tests, num_groups, options={})

def tests_in_groups(tests, num_groups, options={})
  if options[:group_by] == :scenarios
    @test_file_name = "scenario"
  end
  method = "by_#{options[:group_by]}"
  if Grouper.respond_to?(method)
    Grouper.send(method, find_tests(tests, options), num_groups, options)
  else
    super
  end
end