module Cucumber::Core::Events

def self.build_registry(*types)

Returns:
  • (Hash{Symbol => Class}) -
def self.build_registry(*types)
  types.map { |type| [type.event_id, type] }.to_h
end

def self.registry

that will be used by the {EventBus} by default.
The registry contains all the events registered in the core,
def self.registry
  build_registry(
    Envelope,
    GherkinSourceParsed,
    TestStepCreated,
    TestCaseCreated,
    TestCaseStarted,
    TestStepStarted,
    TestStepFinished,
    TestCaseFinished,
  )
end