Giter Club home page Giter Club logo

plop-acceptance-test-steps's Introduction

✨ plop - acceptance test steps

A generator to create step definitions for automated acceptance tests.

acceptance test steps generator

Usage

  1. Install plop globally:

yarn global add plop or npm install -g plop

  1. Install plop-acceptance-test-steps in your project:

yarn add --dev plop-acceptance-test-steps or npm install --save-dev plop-acceptance-test-steps

  1. Create a plopfile.js in the root folder of your project, and require plop-acceptance-test-steps:
  module.exports = require('plop-acceptance-test-steps');

or

  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

plop-acceptance-test-steps's People

Contributors

thiagodelgado111 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

watheia

plop-acceptance-test-steps's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.