lib/gurke/reporter.rb in gurke-3.1.0 vs lib/gurke/reporter.rb in gurke-3.2.0
- old
+ new
@@ -28,10 +28,12 @@
end_step
after_features
after_feature
after_scenario
after_step
+
+ retry_scenario
].freeze
# Called before the execution of any feature and before any
# before-features hook is invoked.
#
@@ -190,9 +192,20 @@
# @api public
#
def end_scenario(_scenario)
raise NotImplementedError.new \
"#{self.class.name}#end_scenario must be implemented in subclass."
+ end
+
+ # Called when a flaky scenario is retried.
+ #
+ # @param scenario [Scenario] Current scenario.
+ #
+ # @api public
+ #
+ def retry_scenario(_scenario)
+ raise NotImplementedError.new \
+ "#{self.class.name}#retry_scenario must be implemented in subclass."
end
# Called after each scenario and after all hooks.
#
# @param scenario [Scenario] Current scenario.