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.

language_from_header.feature 822 B

2 years ago
1234567891011121314151617181920212223242526272829303132
  1. Feature: Choosing the language from the feature file header
  2. In order to simplify command line and settings in IDEs, Cucumber picks
  3. up the parser language from a `# language` comment at the beginning of
  4. any feature file. See the examples below for the exact syntax.
  5. Scenario: LOLCAT
  6. Given a file named "features/lolcat.feature" with:
  7. """
  8. # language: en-lol
  9. OH HAI: STUFFING
  10. B4: HUNGRY
  11. I CAN HAZ EMPTY BELLY
  12. MISHUN: CUKES
  13. DEN KTHXBAI
  14. """
  15. When I run `cucumber -i features/lolcat.feature -q`
  16. Then it should pass with:
  17. """
  18. # language: en-lol
  19. OH HAI: STUFFING
  20. B4: HUNGRY
  21. I CAN HAZ EMPTY BELLY
  22. MISHUN: CUKES
  23. DEN KTHXBAI
  24. 1 scenario (1 undefined)
  25. 2 steps (2 undefined)
  26. """

No Description

Contributors (1)