MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / cucumberFileOption

Function cucumberFileOption

tests/smoke.runner.js:452–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450 * Cucumber file option
451 */
452const 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

Callers

nothing calls this directly

Calls 1

launchFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…