A generator for simple Hubot scripts with brain storage, environment variables and mocha tests
npm install generator-hubot-script-mocha:cat2: A generator for simple Hubot scripts with brain storage, environment variables and mocha tests.
First, install Yeoman and generator-hubot-script-mocha using npm (we assume you have pre-installed node.js).
``bash`
npm install -g yo generator-hubot-script-mocha
Then generate your new Hubot script:
`bash`
mkdir hubot-awesome-script
cd hubot-awesome-script
yo hubot-script-mocha
Run your script's tests with: npm testnpm run watch`
Watch for file changes and run tests automatically with:
Please read our general contributing guidelines.
1. TERMS
2. LICENSE
3. CFPB Source Code Policy
[npm-image]: https://img.shields.io/npm/v/generator-hubot-script-mocha.svg?maxAge=2592000&style=flat-square
[npm-url]: https://www.npmjs.com/package/generator-hubot-script-mocha
[travis-image]: https://img.shields.io/travis/catops/generator-hubot-script-mocha.svg?maxAge=2592000&style=flat-square
[travis-url]: https://travis-ci.org/catops/generator-hubot-script-mocha