reuse-cucumber-scenarios
v1.1.7
Published
Reuse cucumber scenarios by calling them by their tag
Downloads
46
Maintainers
Readme
Reuse-cucumber-scenarios.js
Reuse-cucumber-scenarios is a package that lets you call a cucumber scenario in a single step. The goal is to avoid step repetition (keep your .feature files DRY). You can :
- , from a step in a scenario, call another scenario by its tag and set the parameters for each step it has.
- define scenario functions with variables, then call it by its tag in a different scenario and set actual values for the variables.
Install in Node.js
reuse-cucumber-scenarios.js is available as an npm module.
$ npm install --save-dev reuse-cucumber-scenarios
Usage
- Enabling this package
- Step Patterns
- Defining Steps
- Calling Scenarios
- Step Parameters
- Gherkin Variables
- Scenario Functions
- Examples
Enjoy the Power
Now, we can see how useful is calling scenarios as if they were single steps.
Please, share if you like it and/or give me a star :D