Module: Cucumber::Events

Defined in:
lib/cucumber/events.rb,
lib/cucumber/events/bus.rb,
lib/cucumber/events/step_match.rb,
lib/cucumber/events/after_test_case.rb,
lib/cucumber/events/after_test_step.rb,
lib/cucumber/events/before_test_step.rb,
lib/cucumber/events/finished_testing.rb,
lib/cucumber/events/before_test_case.rb

Overview

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 hook instead.

To subscribe to an event, use Configuration#on_event

Examples:

AfterConfiguration do |config|
  config.on_event :after_test_step do |event|
    puts event.result
  end
end

Defined Under Namespace

Classes: AfterTestCase, AfterTestStep, BeforeTestCase, BeforeTestStep, FinishedTesting, StepMatch