<% if (answers.framework === 'cucumber') { %> // If you are using Cucumber you need to specify the location of your step definitions. cucumberOpts: { // (file/dir) require files before executing features require: ['<%- answers.stepDefinitions %>'], // show full backtrace for errors backtrace: false, // ("extension:module") require files with the given EXTENSION after requiring MODULE (repeatable) requireModule: [], // invoke formatters without executing steps dryRun: false, // abort the run on first failure failFast: false, // Only execute the scenarios with name matching the expression (repeatable). name: [], // hide step definition snippets for pending steps snippets: true, // hide source uris source: true, // fail if there are any undefined or pending steps strict: false, // (expression) only execute the features or scenarios with tags matching the expression tagExpression: '', // timeout for step definitions timeout: 60000, // Enable this config to treat undefined definitions as warnings. ignoreUndefinedDefinitions: false }, <% } else if (answers.serenityAdapter === 'cucumber') { %> // Cucumber configuration, see // https://serenity-js.org/api/cucumber-adapter/interface/CucumberConfig/ cucumberOpts: { // (file/dir) require files before executing features import: [ <% if (answers.stepDefinitions) { %>'<%- answers.stepDefinitions %>', <% } %>'./features/support/*.<%- answers.isUsingTypeScript ? 'ts' : 'js' %>', ], // (type[:path]) specify native Cucumber.js output format, if needed. Optionally supply PATH to redirect formatter output (repeatable) format: [ ], // (name) specify the profile to use profile: '', // fail if there are any undefined or pending steps strict: false, // (expression) only execute the features or scenarios with tags matching the expression tags: [], // timeout for step definitions timeout: 60000, }, <% } %>