Skip to content

Commit e8bdb37

Browse files
author
Tian Feng
committed
add notes
1 parent d4e719d commit e8bdb37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cucumber-runner.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ export function buildArgs(runCfg: CucumberRunnerConfig, cucumberBin: string) {
1818
'--force-exit',
1919
'--require-module',
2020
'ts-node/register',
21+
// NOTE: Cucumber only supports a single stdout formatter. If multiple stdout
22+
// formatters are specified, Cucumber will use the last one provided.
23+
// To ensure the sauce test report file is always generated, redirect the output to
24+
// sauce-test-report.json using the --format argument and specify the outputFile
25+
// in --format-options simultaneously.
2126
'--format',
2227
'"@saucelabs/cucumber-reporter":"sauce-test-report.json"',
2328
'--format-options',

0 commit comments

Comments
 (0)