npm install apemantestapemantest
==========
[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![Code Climate][bd_codeclimate_shield_url]][bd_codeclimate_url]
[![Code Coverage][bd_codeclimate_coverage_shield_url]][bd_codeclimate_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]
[bd_repo_url]: https://github.com/apeman-labo/apemantest
[bd_travis_url]: http://travis-ci.org/apeman-labo/apemantest
[bd_travis_shield_url]: http://img.shields.io/travis/apeman-labo/apemantest.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/apeman-labo/apemantest
[bd_travis_com_shield_url]: https://api.travis-ci.com/apeman-labo/apemantest.svg?token=
[bd_license_url]: https://github.com/apeman-labo/apemantest/blob/master/LICENSE
[bd_codeclimate_url]: http://codeclimate.com/github/apeman-labo/apemantest
[bd_codeclimate_shield_url]: http://img.shields.io/codeclimate/github/apeman-labo/apemantest.svg?style=flat
[bd_codeclimate_coverage_shield_url]: http://img.shields.io/codeclimate/coverage/github/apeman-labo/apemantest.svg?style=flat
[bd_gemnasium_url]: https://gemnasium.com/apeman-labo/apemantest
[bd_gemnasium_shield_url]: https://gemnasium.com/apeman-labo/apemantest.svg
[bd_npm_url]: http://www.npmjs.org/package/apemantest
[bd_npm_shield_url]: http://img.shields.io/npm/v/apemantest.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
Test utilify for apeman.
``bash`
$ npm install apemantest --save-dev
`javascript
/**
* Test case for signRoute.
* Runs with mocha.
*/
'use strict'
const apemantest = require('apemantest')
const request = apemantest.newRequest()
const { assert, co } = apemantest
describe('sign-route', function suite () {
this.timeout(4000)
let server = apemantest.testServer('api', {
configuration: require('../Apemanfile.js')
})
before(() => co(function * () {
yield apemantest.resetDB()
yield server.start()
}))
after(() => co(function * () {
yield server.stop()
}))
it('API Test', () => co(function * () {
let res = yield request({
url: ${server.baseUrl}/sign/signup,
method: 'POST',
form: { / ... / }
})
/ ... /
}))
})
/ global describe, before, after, it /
``
License
-------
This software is released under the MIT License.
Links
------
+ [apeman][apeman_url]
[apeman_url]: https://github.com/apeman-labo/apeman