Sha256: 33de2f656afa499f55b3da9d5d5491fd5765d18655c5e58508f747665646eeb1

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

Feature: Test Run Started Event

  This event is fired once all test cases have been filtered, just before
  the first one is executed.

  See [the API documentation](http://www.rubydoc.info/github/cucumber/cucumber-ruby/Cucumber/Events/TestRunStarted) for more information about the data available on this event.

  Background:
    Given the standard step definitions
    And a file named "features/foo.feature" with:
      """
      Feature: Foo
        Scenario:
          Given a passing step
      """
    And a file named "features/bar.feature" with:
      """
      Feature: Foo
        Scenario:
          Given a passing step
      """
    And a file named "features/support/events.rb" with:
      """
      AfterConfiguration do |config|
        config.on_event :test_run_started do |event|
          config.out_stream.puts "test run started"
          config.out_stream.puts event.test_cases.map(&:location)
        end
      end
      """

  @todo-windows
  Scenario: Run the test case
    When I run `cucumber -q`
    Then it should pass with:
      """
      test run started
      features/bar.feature:2
      features/foo.feature:2
      """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber-3.0.1 features/docs/events/test_run_started_event.feature
cucumber-3.0.0 features/docs/events/test_run_started_event.feature