asynct

1.1.0 • Public • Published

asynct

a simple asyncronous test framework for nodejs.

(mostly) api compatible with https://github.com/bentomas/node-async-testing and https://github.com/caolan/nodeunit

install

npm install asynct

a test

//test.js
exports ['test 1'] = function (test) {

  //some test assertions here
  
  test.done() //or test.finish()

}

exports.__setup = function (test) {
  //called before all tests (optional)
  test.done()
}

exports.__teardown = function (test) {
  //called after all tests, even if there is an error (optional)
  //test.done() not necessary in teardown
}

run it:

asynct test.js

tests

tests are in seperate repo. https://github.com/dominictarr/asynct_tests

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    17
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    17
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    11

Package Sidebar

Install

npm i asynct

Weekly Downloads

30

Version

1.1.0

License

none

Last publish

Collaborators

  • nopersonsmodules