tap-lite-tester

0.5.2 • Public • Published

tap-lite-tester

TAP lightweight testing with no dependencies

Installation

$ npm install tap-lite-tester

API

tap.start(count)
tap.plan(count)
tap.addPlans(inc_count)
tap.finish(count, setExitCode=setExitCode_p)
 
tap.test(title, cb)
tap.test_cb(title, cb)
tap.serial(title, cb)
tap.only(title, cb)
tap.skip(title, cb, reason)
tap.todo(title, cb, reason)
tap.failing(title, cb, reason)

Test callback argument supports all functions of the assert library, as well as ::

t.promiseResolves(aPromise, message)
t.promiseRejects(aPromise, message)
t.asyncThrows(asyncBlock, error, message)

Example

See examples/ for using tap-lite-tester. Self-hosting for the win!

Package Sidebar

Install

npm i tap-lite-tester

Weekly Downloads

2

Version

0.5.2

License

ISC

Last publish

Collaborators

  • shanewholloway