sails-generate-api-test
Version:
sails generate api-test
58 lines (29 loc) • 1.96 kB
Markdown
# sails-generate-api-test
An `api-test` generator for use with the Sails command-line interface, using [chai](http://chaijs.com/) and [supertest](https://github.com/visionmedia/supertest). An easy way to strap up API acceptance tests.
Certain generators are installed by default in Sails, but they can be overridden. Other generators create entirely new things. Check the [Sails docs](http://sailsjs.org/#!documentation) for information on installing generator overrides / custom generators and information on building your own generators.
### Installation
```sh
$ npm install sails-generate-api-test
```
### Usage
##### On the command line
```sh
$ sails generate api-test [modelName]
```
### Development
To get started quickly and see this generator in action, ...
Also see `CONTRIBUTING.md` for more information on overriding/enhancing existing generators.
### Questions?
See `FAQ.md`.
### More Resources
- [Stackoverflow](http://stackoverflow.com/questions/tagged/sails.js)
- [#sailsjs on Freenode](http://webchat.freenode.net/) (IRC channel)
- [Twitter](https://twitter.com/sailsjs)
- [Professional/enterprise](https://github.com/balderdashy/sails-docs/blob/master/FAQ.md#are-there-professional-support-options)
- [Tutorials](https://github.com/balderdashy/sails-docs/blob/master/FAQ.md#where-do-i-get-help)
- <a href="http://sailsjs.org" target="_blank" title="Node.js framework for building realtime APIs."><img src="https://github-camo.global.ssl.fastly.net/9e49073459ed4e0e2687b80eaf515d87b0da4a6b/687474703a2f2f62616c64657264617368792e6769746875622e696f2f7361696c732f696d616765732f6c6f676f2e706e67" width=60 alt="Sails.js logo (small)"/></a>
### License
**[MIT](./LICENSE)**
© 2015 [balderdashy](http://github.com/balderdashy) & contributors
As for [Sails](http://sailsjs.org)? It's free and open-source under the [MIT License](http://sails.mit-license.org/).
