abhinaba-ghosh / cucumber-quick

:rabbit2: vscode extension to run cucumber scenarios quickly and easily
https://marketplace.visualstudio.com/items?itemName=AbhinabaGhosh.cucumberquick
MIT License
5 stars 7 forks source link
cucumber cucumber-scenario cypress cypress-cucumber-preprocessor protractor-cucumber typescript vscode vscode-extension webdriverio-cucumber

Cucumber Quick

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.

Supported Tools

Currently we support:

Setup Run Configuration

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:

  1. create settings.json file under .vscode folder (ignore if already created)
  2. create cucumber-quick option for the specific tool you are using. The configuration structure is shown below:
// .vscode > settings.json

{
  "cucumber-quick": {
        "tool": "tool-name",
        "script": "npx tool-name relative-path/to/configurations"
    }
}

Protractor-Cucumber/ SerenityJS Configuration

// .vscode > settings.json

{
  "cucumber-quick": {
        "tool": "protractor",
        "script": "npx protractor relative-path/to/protractor.conf.js"
    }
}

WebDriverIO Configuration

// .vscode > settings.json

{
  "cucumber-quick": {
        "tool": "webdriverio",
        "script": "npx wdio relative-path/to/wdio.conf.js"
    }
}

Cypress-Cucumber-Preprocessor Configuration

// .vscode > settings.json
{
    "cucumber-quick": {
        "tool": "cypress",
        "script": "npx cypress-tags"
    }
}

Native Cucumber-JS Configuration

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"
  }
}

Run Scenarios and Features

Log Issues

Log your issues and feature request here

Thank you

If this plugin was helpful for you, you can give it a ★ Star on GitHub

Copyright © 2020- Abhinaba Ghosh