You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_run_started_event.feature 1.1 kB

3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. Feature: Test Run Started Event
  2. This event is fired once all test cases have been filtered, just before
  3. the first one is executed.
  4. 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.
  5. Background:
  6. Given the standard step definitions
  7. And a file named "features/foo.feature" with:
  8. """
  9. Feature: Foo
  10. Scenario:
  11. Given a passing step
  12. """
  13. And a file named "features/bar.feature" with:
  14. """
  15. Feature: Foo
  16. Scenario:
  17. Given a passing step
  18. """
  19. And a file named "features/support/events.rb" with:
  20. """
  21. InstallPlugin do |config|
  22. config.on_event :test_run_started do |event|
  23. config.out_stream.puts "test run started"
  24. config.out_stream.puts event.test_cases.map(&:location)
  25. end
  26. end
  27. """
  28. Scenario: Run the test case
  29. When I run `cucumber -q`
  30. Then it should pass with:
  31. """
  32. test run started
  33. features/bar.feature:2
  34. features/foo.feature:2
  35. """

No Description

Contributors (1)