Sha256: 760c6c4cc32dbe3852aa723f8bf9464c5a4665f9bc0570ac2b24dce1340d906b
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 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 # AfterConfiguration 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( TestCaseStarted, TestCaseFinished, TestStepFinished, TestStepStarted, StepDefinitionRegistered, StepActivated, TestRunFinished, GherkinSourceRead, TestRunStarted ) end end end
Version data entries
4 entries across 4 versions & 2 rubygems