Sha256: bf379eb031dda9e81295a28239203d3ca6af7f97b3216df5150e1b1fb6efa42f
Contents?: true
Size: 941 Bytes
Versions: 12
Compression:
Stored size: 941 Bytes
Contents
require "parallel_tests/gherkin/runner" module ParallelTests module Cucumber class Runner < ParallelTests::Gherkin::Runner class << self def name 'cucumber' end def line_is_result?(line) super or line =~ failing_scenario_regex end def summarize_results(results) output = [] failing_scenarios = results.grep(failing_scenario_regex) if failing_scenarios.any? failing_scenarios.unshift("Failing Scenarios:") output << failing_scenarios.join("\n") end output << super output.join("\n\n") end def command_with_seed(cmd, seed) cmd = cmd.sub(/\s--order random(:\d*)?/, '') "#{cmd} --order random:#{seed}" end private def failing_scenario_regex /^cucumber features\/.+:\d+/ end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems