Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiagodelgado111/plop-acceptance-test-steps
A generator for cucumberjs test step definitions
https://github.com/thiagodelgado111/plop-acceptance-test-steps
cucumberjs plop plop-generators
Last synced: 12 days ago
JSON representation
A generator for cucumberjs test step definitions
- Host: GitHub
- URL: https://github.com/thiagodelgado111/plop-acceptance-test-steps
- Owner: thiagodelgado111
- License: mit
- Created: 2017-02-10T16:27:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-21T14:26:27.000Z (over 7 years ago)
- Last Synced: 2024-10-08T03:05:04.355Z (3 months ago)
- Topics: cucumberjs, plop, plop-generators
- Language: JavaScript
- Homepage:
- Size: 75.2 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# β¨ plop - acceptance test steps
A generator to create step definitions for automated acceptance tests.![acceptance test steps generator](misc/plop.png "Acceptance test steps generator")
## Usage
1. Install plop globally:`yarn global add plop` or `npm install -g plop`
2. Install `plop-acceptance-test-steps` in your project:
`yarn add --dev plop-acceptance-test-steps` or `npm install --save-dev plop-acceptance-test-steps`
3. Create a `plopfile.js` in the root folder of your project, and require `plop-acceptance-test-steps`:
```javascript
module.exports = require('plop-acceptance-test-steps');
```or
```javascript
Β const acceptanceTestsGenerator = require('plop-acceptance-test-steps');
module.exports = function (plop) {
...
acceptanceTestsGenerator(plop);
...
Β };
```## Scenario name template
To generate a step definition file, first, follow the instructions above. Then when the generator asks you for the step definition, just type it in the same way you'd add it to your `.feature`. e.g:
> Then user "[email protected]" should be able to create an account
or
> Then the user account should have 1.25 credits
There is one special case though, when you wanna restrict the text argument to specific choices, in that case, you should use the pattern below:
> Then the user account [can|cannot] create an account
## Contributing πͺ
To contribute, please open an issue or file a PR.## License
MIT