Skip to content

Commit f271f70

Browse files
committed
1 parent 67a502a commit f271f70

File tree

4 files changed

+28
-27
lines changed

4 files changed

+28
-27
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Please visit [cucumber/CONTRIBUTING.md](https://github.com/cucumber/cucumber/blo
1919
([1546](https://github.com/cucumber/cucumber-ruby/issues/1546)
2020
[1548](https://github.com/cucumber/cucumber-ruby/pull/1548)
2121
[Serghei Moret](https://github.com/JoeSSS))
22+
- Fixed reports banner to point to [new docs](https://cucumber.io/docs/cucumber/environment-variables/) about environment variables
2223

2324
### Changed
2425

features/docs/cli/publish_banner.feature

+13-13
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ Feature: Publish banner
1111
When I run `cucumber`
1212
Then the output should contain:
1313
"""
14-
┌──────────────────────────────────────────────────────────────────────────┐
15-
│ Share your Cucumber Report with your team at https://reports.cucumber.io │
16-
│ │
17-
│ Command line option: --publish │
18-
│ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │
19-
│ cucumber.yml: default: --publish │
20-
│ │
21-
│ More information at https://reports.cucumber.io/docs/cucumber-ruby
22-
│ │
23-
│ To disable this message, specify CUCUMBER_PUBLISH_QUIET=true or use the │
24-
│ --publish-quiet option. You can also add this to your cucumber.yml: │
25-
│ default: --publish-quiet │
26-
└──────────────────────────────────────────────────────────────────────────┘
14+
┌──────────────────────────────────────────────────────────────────────────────
15+
│ Share your Cucumber Report with your team at https://reports.cucumber.io
16+
17+
│ Command line option: --publish
18+
│ Environment variable: CUCUMBER_PUBLISH_ENABLED=true
19+
│ cucumber.yml: default: --publish
20+
21+
│ More information at https://cucumber.io/docs/cucumber/environment-variables/
22+
23+
│ To disable this message, specify CUCUMBER_PUBLISH_QUIET=true or use the
24+
│ --publish-quiet option. You can also add this to your cucumber.yml:
25+
│ default: --publish-quiet
26+
└──────────────────────────────────────────────────────────────────────────────
2727
"""
2828

2929
Scenario: Banner is not displayed when using --publish-quiet

lib/cucumber/formatter/publish_banner_printer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def display_publish_ad(io)
4141
'',
4242
[
4343
'More information at ',
44-
link('https://reports.cucumber.io/docs/cucumber-ruby')
44+
link('https://cucumber.io/docs/cucumber/environment-variables/')
4545
],
4646
'',
4747
[

spec/cucumber/formatter/publish_banner_printer_spec.rb

+13-13
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ module Formatter
2424
it 'prints banner' do
2525
run_defined_feature
2626
expect(@err.string).to include(<<~BANNER)
27-
┌──────────────────────────────────────────────────────────────────────────┐
28-
│ Share your Cucumber Report with your team at https://reports.cucumber.io │
29-
│ │
30-
│ Command line option: --publish │
31-
│ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │
32-
│ cucumber.yml: default: --publish │
33-
│ │
34-
│ More information at https://reports.cucumber.io/docs/cucumber-ruby
35-
│ │
36-
│ To disable this message, specify CUCUMBER_PUBLISH_QUIET=true or use the │
37-
│ --publish-quiet option. You can also add this to your cucumber.yml: │
38-
│ default: --publish-quiet │
39-
└──────────────────────────────────────────────────────────────────────────┘
27+
┌──────────────────────────────────────────────────────────────────────────────
28+
│ Share your Cucumber Report with your team at https://reports.cucumber.io
29+
30+
│ Command line option: --publish
31+
│ Environment variable: CUCUMBER_PUBLISH_ENABLED=true
32+
│ cucumber.yml: default: --publish
33+
34+
│ More information at https://cucumber.io/docs/cucumber/environment-variables/
35+
36+
│ To disable this message, specify CUCUMBER_PUBLISH_QUIET=true or use the
37+
│ --publish-quiet option. You can also add this to your cucumber.yml:
38+
│ default: --publish-quiet
39+
└──────────────────────────────────────────────────────────────────────────────
4040
BANNER
4141
end
4242
end

0 commit comments

Comments
 (0)