class ParallelTests::Cucumber::Runner

Constants

FAILED_SCENARIO_REGEX

Public Class Methods

command_with_seed(cmd, seed) click to toggle source
# File lib/parallel_tests/cucumber/runner.rb, line 31
def command_with_seed(cmd, seed)
  cmd = cmd.sub(/\s--order random(:\d*)?/, '')
  "#{cmd} --order random:#{seed}"
end
line_is_result?(line) click to toggle source
# File lib/parallel_tests/cucumber/runner.rb, line 13
def line_is_result?(line)
  super || line =~ FAILED_SCENARIO_REGEX
end
name() click to toggle source
# File lib/parallel_tests/cucumber/runner.rb, line 9
def name
  'cucumber'
end
summarize_results(results) click to toggle source
# File lib/parallel_tests/cucumber/runner.rb, line 17
def summarize_results(results)
  output = []

  failing_scenarios = results.grep(FAILED_SCENARIO_REGEX)
  if failing_scenarios.any?
    failing_scenarios.unshift("Failing Scenarios:")
    output << failing_scenarios.join("\n")
  end

  output << super

  output.join("\n\n")
end