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