Mocha interface that adds step function to BDD
npm install mocha-bdd-stepsWill now work with Mocha 6.
Mocha interface that adds a step() function to BDD, as an alternative to it().
If a step() fails, following step() calls within the describe() will be skipped. Useful for BDD where tests need to be run in a specific sequence.
Works with tests that are synchronous, asynchronous, returned promises, and retries.
``
it function
✓ should be called
1) should be called and error
✓ should be called
step sequence
✓ should first be called
2) then should be called and error
- then should be skipped
- then should also be skipped
`
$ npm install --save-dev mocha-bdd-steps
From the command line:
$ mocha --ui mocha-bdd-steps test.js