Method: Cucumber::Formatter::Query::TestCaseStartedByTestCase#initialize

Defined in:
lib/cucumber/formatter/query/test_case_started_by_test_case.rb

#initialize(config) ⇒ TestCaseStartedByTestCase

Returns a new instance of TestCaseStartedByTestCase.



9
10
11
12
13
14
15
16
# File 'lib/cucumber/formatter/query/test_case_started_by_test_case.rb', line 9

def initialize(config)
  @config = config
  config.on_event :test_case_created, &method(:on_test_case_created)
  config.on_event :test_case_started, &method(:on_test_case_started)

  @attempts_by_test_case_id = {}
  @test_case_started_id_by_test_case_id = {}
end