Cucumber-Quick helps you to run cucumber scenario and features directly from vscode editor. You can simply right click on any feature file and choose the option from the context menu to run a specific scenario or the whole feature file.
Currently we support:
The extension needs to understand what tool you are using and what ae the different parameters specific to your test execution. Follow the steps below:
// .vscode > settings.json
{
"cucumber-quick": {
"tool": "tool-name",
"script": "npx tool-name relative-path/to/configurations"
}
}
// .vscode > settings.json
{
"cucumber-quick": {
"tool": "protractor",
"script": "npx protractor relative-path/to/protractor.conf.js"
}
}
Make sure the WebDriverIO-cucumber setup uses wdio-test-runner, that means, it should have cucumberOpts enabled. Remember, the cucumber-boilerplate provided by WebDriverIO uses yadda as cucumber framework. In that case, this extension will not work. But once you switch to wdio-test-runner, this extension will work like magic!
Find a video here to get more about WDIO configuration
// .vscode > settings.json
{
"cucumber-quick": {
"tool": "webdriverio",
"script": "npx wdio relative-path/to/wdio.conf.js"
}
}
Cypress cucumber preprocessor currently support ruining specific features. Running specific scenario by scenario name is still not supported by cypress-cucumber-preprocessor. It supports to run specific scenario by TAGS. You need to right-click on the Tags name in this case.
Cucumber-Quick only support Cypress-Cucumber-Preprocessor V 2.1.0 or higher.
For other tools, execution happens in VSCode Output terminal, but for Cypress, execution happens in Integrated terminal.
// .vscode > settings.json
{
"cucumber-quick": {
"tool": "cypress",
"script": "npx cypress-tags"
}
}
Note that: in scripts section, place the all features location as shown in the example configuration below:
// .vscode > settings.json
{
"cucumber-quick": {
"tool": "cucumberjs",
"script": "npx cucumber-js relative-path/to/**/*.feature --require relative-path/to/**/*.js"
}
}
Log your issues and feature request here
If this plugin was helpful for you, you can give it a ★ Star on GitHub
Copyright © 2020- Abhinaba Ghosh