0.5.2 • Published 7 years ago

tap-lite-tester v0.5.2

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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!

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.9

7 years ago

0.3.9-0

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.1-0

7 years ago

0.3.0

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago