module Cucumber::Core::Events

def self.build_registry(*types)

Returns:
  • (Hash{Symbol => Class}) -
def self.build_registry(*types)
  types.to_h { |type| [type.event_id, type] }
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