From 102ec8f0e70ddb4c8f06bd9f288a2d6ef9d569c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aslak=20Helles=C3=B8y?= Date: Tue, 22 Jun 2021 11:28:47 +0100 Subject: [PATCH] Fixed reports banner to point to https://cucumber.io/docs/cucumber/environment-variables/ --- CHANGELOG.md | 2 ++ features/publish.feature | 22 +++++++++++----------- src/cli/publish_banner.ts | 2 +- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c19cb9f9..b534c2508 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO ### Fixed +* Fixed reports banner to point to [new docs](https://cucumber.io/docs/cucumber/environment-variables/) about environment variables + ## [7.3.0] (2021-06-17) ### Added diff --git a/features/publish.feature b/features/publish.feature index c93c04653..debcf067a 100644 --- a/features/publish.feature +++ b/features/publish.feature @@ -90,17 +90,17 @@ Feature: Publish reports When I run cucumber-js Then the error output contains the text: """ - ┌──────────────────────────────────────────────────────────────────────────┐ - │ Share your Cucumber Report with your team at https://reports.cucumber.io │ - │ │ - │ Command line option: --publish │ - │ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │ - │ │ - │ More information at https://reports.cucumber.io/docs/cucumber-js │ - │ │ - │ To disable this message, add this to your ./cucumber.js: │ - │ module.exports = { default: '--publish-quiet' } │ - └──────────────────────────────────────────────────────────────────────────┘ + ┌──────────────────────────────────────────────────────────────────────────────┐ + │ Share your Cucumber Report with your team at https://reports.cucumber.io │ + │ │ + │ Command line option: --publish │ + │ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │ + │ │ + │ More information at https://cucumber.io/docs/cucumber/environment-variables/ │ + │ │ + │ To disable this message, add this to your ./cucumber.js: │ + │ module.exports = { default: '--publish-quiet' } │ + └──────────────────────────────────────────────────────────────────────────────┘ """ @spawn diff --git a/src/cli/publish_banner.ts b/src/cli/publish_banner.ts index 53a8eefca..788abaefd 100644 --- a/src/cli/publish_banner.ts +++ b/src/cli/publish_banner.ts @@ -8,7 +8,7 @@ const formattedReportUrl = underlineBoldCyan('https://reports.cucumber.io') const formattedEnv = colors.cyan('CUCUMBER_PUBLISH_ENABLED') + '=' + colors.cyan('true') const formattedMoreInfoUrl = underlineBoldCyan( - 'https://reports.cucumber.io/docs/cucumber-js' + 'https://cucumber.io/docs/cucumber/environment-variables/' ) const text = `\