Skip to content

Commit

Permalink
revise notes
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Nov 22, 2024
1 parent 5bafda0 commit cb686cd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/cucumber-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ export function buildArgs(runCfg: CucumberRunnerConfig, cucumberBin: string) {
'--force-exit',
'--require-module',
'ts-node/register',
// NOTE: The Cucumber formatter (--format) setting follows the "type":"path" format.
// If the "path" is missing, the output defaults to stdout.
// Cucumber supports only one stdout formatter, and if multiple are specified,
// it will use the last one provided.
// To ensure the Sauce test report file is always generated,
// set the output to a file using the --format option,
// and use the --format-options flag to specify the outputFile.
// Both fields must be configured for the file to be created reliably.
// NOTE: The Cucumber formatter (--format) setting uses the "type:path" format.
// If the "path" is not provided, the output defaults to stdout.
// Cucumber supports only one stdout formatter; if multiple are specified,
// it will prioritize the last one listed.
// To ensure the Sauce test report file is always generated and not overridden
// by a user-specified stdout formatter, set the output to a file using the --format option
// and configure the --format-options flag to specify the outputFile.
// Both settings must be properly configured to reliably generate the file.
'--format',
'"@saucelabs/cucumber-reporter":"sauce-test-report.json"',
'--format-options',
Expand Down

0 comments on commit cb686cd

Please sign in to comment.