gitlab-org--gitlab-foss/features/support/rerun.rb

17 lines
527 B
Ruby
Raw Normal View History

2016-03-09 08:12:08 -05:00
# The spinach-rerun-reporter doesn't define the on_undefined_step
# See it here: https://github.com/javierav/spinach-rerun-reporter/blob/master/lib/spinach/reporter/rerun.rb
2016-10-14 08:32:47 -04:00
require 'spinach-rerun-reporter'
2016-03-09 08:12:08 -05:00
module Spinach
class Reporter
class Rerun
def on_undefined_step(step_data, failure, step_definitions = nil)
super step_data, failure, step_definitions
# save feature file and scenario line
@rerun << "#{current_feature.filename}:#{current_scenario.line}"
end
end
end
end