apemantest
Test utilify for apeman.
Last updated 4 years ago by okunishinishi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apemantest 
SYNC missed versions from official npm registry.

apemantest

Build Status Code Climate Code Coverage npm Version JS Standard

Test utilify for apeman.

Installation

$ npm install apemantest --save-dev

Usage

/**
 * 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

Current Tags

  • 4.0.4                                ...           latest (4 years ago)

25 Versions

  • 4.0.4                                ...           4 years ago
  • 4.0.3                                ...           4 years ago
  • 4.0.2                                ...           4 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           4 years ago
  • 3.0.3                                ...           4 years ago
  • 3.0.1                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.1.7                                ...           4 years ago
  • 2.1.6                                ...           4 years ago
  • 2.1.5                                ...           4 years ago
  • 2.1.4                                ...           4 years ago
  • 2.1.3                                ...           4 years ago
  • 2.1.2                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.0.5                                ...           4 years ago
  • 2.0.4                                ...           4 years ago
  • 2.0.3                                ...           4 years ago
  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (10)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |