()
| 450 | * Cucumber file option |
| 451 | */ |
| 452 | const cucumberFileOption = async () => { |
| 453 | const logFile = path.resolve(__dirname, 'cucumber', 'cucumberFileOption.log') |
| 454 | await fs.rm(logFile, { force: true }) |
| 455 | const { passed } = await launch( |
| 456 | 'cucumberFileOption', |
| 457 | path.resolve(__dirname, 'helpers', 'cucumber-hooks.conf.js'), |
| 458 | { |
| 459 | specs: [ |
| 460 | path.resolve(__dirname, 'cucumber', 'test.feature'), |
| 461 | ], |
| 462 | reporters: [ |
| 463 | ['spec', { |
| 464 | outputDir: __dirname, |
| 465 | stdout: false, |
| 466 | logFile |
| 467 | }]], |
| 468 | cucumberOpts: { |
| 469 | ignoreUndefinedDefinitions: true, |
| 470 | scenarioLevelReporter: true, |
| 471 | retry: 1, |
| 472 | retryTagFilter: '@retry', |
| 473 | file: './cucumber/cucumber.js' |
| 474 | } |
| 475 | } |
| 476 | ) |
| 477 | assert.strictEqual(passed, 1) |
| 478 | const specLogs = (await fs.readFile(logFile)).toString().replace(ansiColorRegex, '') |
| 479 | assert.ok( |
| 480 | specLogs.includes('test-skipped.feature'), |
| 481 | 'scenario not included according to cucumber config' |
| 482 | ) |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * Cucumber @skip() tag |
nothing calls this directly
no test coverage detected
searching dependent graphs…