Class: Datadog::CI::Contrib::Cucumber::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/ci/contrib/cucumber/filter.rb

Instance Method Summary collapse

Instance Method Details

#test_case(test_case) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/datadog/ci/contrib/cucumber/filter.rb', line 8

def test_case(test_case)
  test_retries_component.reset_retries! unless test_case_seen[test_case]
  test_case_seen[test_case] = true

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

    test_case.describe_to(receiver)
  end

  super
end