Class: Cucumber::Filters::Retry

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/filters/retry.rb

Instance Method Summary collapse

Instance Method Details

#test_case(test_case) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/filters/retry.rb', line 10

def test_case(test_case)
  configuration.on_event(:test_case_finished) do |event|
    next unless retry_required?(test_case, event)

    test_case_counts[test_case] += 1
    test_case.describe_to(receiver)
  end

  super
end