Configuration best practice wtih cucumber

HI guys ,
I’m in the process of configuring codeceptJs with cucumber What is best practice?
Also can anyone share an example of a config file and launch.json file with cucumber?
Also , what is the best way to configure Cucumber , under webdriverIO or npx codeceptjs gherkin:init

This is my codecept.conf.js:

exports.config = {
output: ‘.logs’,
helpers: {
Puppeteer: {
url: ‘https://qa-appstudio.bnymellon.com/’,
“show”: true
}
},
include: {},
mocha: {},
bootstrap: null,
teardown: null,
hooks: ,
gherkin: {
features: ‘.src/features/*.feature’,
steps: [‘./src/steps/steps.js’]
},
plugins: {
screenshotOnFail: {
enabled: true
},
allure: {},
wdio: {
enabled: true,
services: [‘selenium-standalone’]
}
},
timeout: 10000
};

This is my Launch.json:

{
“version”: “0.2.0”,
“configurations”: [
{
“type”: “node”,
“request”: “launch”,
“name”: “codeception”,
“args”: [“run”, “–steps”, “–grep”, “@your-test-name-here”, “–verbose”],
“program”: “${workspaceFolder}/node_modules/.bin/codeceptjs”
}
]
}

I have a quick start repository with Gherkin - CodeceptJS integration. Pls take a look - https://github.com/gkushang/codeceptjs-quick-start

1 Like

Hi, good day, by chance, they have been able to perform the configuration by environments, that is, QA Environment, Production, I want to execute the 10 scenarios, 5 in Production and 10 in QA, how could I do it.
Thank you