Skip to content

Commit e5f0f0d

Browse files
committed
kill useless format options
1 parent a2248ab commit e5f0f0d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/cucumber-runner.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,6 @@ export async function runCucumber(
209209
function buildFormatOption(cfg: CucumberRunnerConfig) {
210210
return {
211211
upload: false,
212-
suiteName: cfg.suite.name,
213-
build: cfg.sauce.metadata?.build,
214-
tags: cfg.sauce.metadata?.tags,
215212
outputFile: path.join(cfg.assetsDir, 'sauce-test-report.json'),
216213
...cfg.suite.options.formatOptions,
217214
};

tests/unit/src/cucumber-runner.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('buildArgs', () => {
1414
options: {
1515
paths: ['features/test.feature'],
1616
formatOptions: {
17-
build: 'mybuild',
17+
myOption: 'test',
1818
},
1919
},
2020
},
@@ -31,7 +31,7 @@ describe('buildArgs', () => {
3131
'--format',
3232
'"@saucelabs/cucumber-reporter":"cucumber.log"',
3333
'--format-options',
34-
'{"upload":false,"build":"mybuild","outputFile":"/project/assets/sauce-test-report.json"}',
34+
'{"upload":false,"outputFile":"/project/assets/sauce-test-report.json","myOption":"test"}',
3535
]);
3636
});
3737
});

0 commit comments

Comments
 (0)