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.

require.feature 634 B

2 years ago
123456789101112131415161718192021222324252627
  1. Feature: Requiring extra step files
  2. Cucumber allows you to require extra files using the `-r` option.
  3. Scenario:
  4. Given a file named "features/test.feature" with:
  5. """
  6. Feature: Sample
  7. Scenario: Sample
  8. Given found in extra file
  9. """
  10. And a file named "tmp/extras.rb" with:
  11. """
  12. Given(/^found in extra file$/) { }
  13. """
  14. When I run `cucumber -q -r tmp/extras.rb features/test.feature`
  15. Then it should pass with:
  16. """
  17. Feature: Sample
  18. Scenario: Sample
  19. Given found in extra file
  20. 1 scenario (1 passed)
  21. 1 step (1 passed)
  22. """

No Description

Contributors (1)