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.

fail_fast.feature 1.2 kB

2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @disable_fail_fast
  2. Feature: Fail fast
  3. The --fail-fast flag causes Cucumber to exit immediately after the first
  4. scenario fails.
  5. Scenario: When a scenario fails
  6. Given a file named "features/bad.feature" with:
  7. """
  8. Feature: Bad
  9. Scenario: Failing
  10. Given this step fails
  11. """
  12. And a file named "features/good.feature" with:
  13. """
  14. Feature: Good
  15. Scenario: Passing
  16. Given this step passes
  17. """
  18. And the standard step definitions
  19. When I run `cucumber --fail-fast`
  20. Then it should fail
  21. And the output should contain:
  22. """
  23. 1 scenario (1 failed)
  24. """
  25. Scenario: When all the scenarios pass
  26. Given a file named "features/first.feature" with:
  27. """
  28. Feature: first feature
  29. Scenario: foo first
  30. Given this step passes
  31. Scenario: bar first
  32. Given this step passes
  33. """
  34. And a file named "features/second.feature" with:
  35. """
  36. Feature: second
  37. Scenario: foo second
  38. Given this step passes
  39. Scenario: bar second
  40. Given this step passes
  41. """
  42. When I run `cucumber --fail-fast`
  43. Then it should pass

No Description

Contributors (1)