reuse-cucumber-scenarios

1.1.7 • Public • Published

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

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

Package Sidebar

Install

npm i reuse-cucumber-scenarios

Weekly Downloads

13

Version

1.1.7

License

MIT

Unpacked Size

37.7 kB

Total Files

19

Last publish

Collaborators

  • virgomax