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.

publish_banner.feature 2.2 kB

2 years ago
1234567891011121314151617181920212223242526272829303132333435363738
  1. Feature: Publish banner
  2. A banner is displayed on stderr at the end of a run to inform that reports can
  3. be published on reports.cucumber.io[reports.cucumber.io](https://reports.cucumber.io).
  4. Scenario: Banner is displayed when running Cucumber
  5. Given a file named "features/hello.feature" with:
  6. """
  7. Feature: Hello
  8. """
  9. When I run `cucumber`
  10. Then the output should contain:
  11. """
  12. ┌──────────────────────────────────────────────────────────────────────────────┐
  13. │ Share your Cucumber Report with your team at https://reports.cucumber.io │
  14. │ │
  15. │ Command line option: --publish │
  16. │ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │
  17. │ cucumber.yml: default: --publish │
  18. │ │
  19. │ More information at https://cucumber.io/docs/cucumber/environment-variables/ │
  20. │ │
  21. │ To disable this message, specify CUCUMBER_PUBLISH_QUIET=true or use the │
  22. │ --publish-quiet option. You can also add this to your cucumber.yml: │
  23. │ default: --publish-quiet │
  24. └──────────────────────────────────────────────────────────────────────────────┘
  25. """
  26. Scenario: Banner is not displayed when using --publish-quiet
  27. Given a file named "features/hello.feature" with:
  28. """
  29. Feature: Hello
  30. """
  31. When I run `cucumber --publish-quiet`
  32. Then the output should not contain:
  33. """
  34. Share your Cucumber Report with your team at https://reports.cucumber.io
  35. """

No Description

Contributors (1)