Sha256: 9313f432309ad361da021ef2075b3ca83d289f90a6113a38dfc73d3feae4dd78
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
# frozen_string_literal: true Dir[File.dirname(__FILE__) + '/events/*.rb'].map(&method(:require)) module Cucumber # Events tell you what's happening while Cucumber runs your features. # # They're designed to be read-only, appropriate for writing formatters and other # output tools. If you need to be able to influence the result of a scenario, use a {RbSupport::RbDsl hook} instead. # # To subscribe to an event, use {Cucumber::Configuration#on_event} # # @example # InstallPlugin do |config| # config.on_event :test_case_finished do |event| # puts event.result # end # end # module Events def self.make_event_bus Core::EventBus.new(registry) end def self.registry Core::Events.build_registry( GherkinSourceParsed, GherkinSourceRead, HookTestStepCreated, StepActivated, StepDefinitionRegistered, TestCaseCreated, TestCaseFinished, TestCaseStarted, TestCaseReady, TestRunFinished, TestRunStarted, TestStepCreated, TestStepFinished, TestStepStarted, Envelope, UndefinedParameterType ) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
phillipug-foodie-0.1.0 | .vendor/ruby/3.0.0/gems/cucumber-7.1.0/lib/cucumber/events.rb |
cucumber-7.1.0 | lib/cucumber/events.rb |