A more robust tap-producing test harness for node and browsers.
Adds the following to tape without changing your normal workflow or adding globals:
- better nested tests
afterEach() will also be called for each child/nested test (similar to Mocha's nested suites)
npm install tapes --save-dev
var tape = ;var tapes = ;var test = ;;
Running from the command line
$ tapes test/**/*.js
$ node test/index.js
Running from withing package.json
"name": "my-module""scripts":"test": "tapes test/**/*.js"
var test = tapes(tape)
Initializer receives a
tape instance (versions 3.x and 4.x are acceptable). Returns test function.
Create a new tests, exactlty the same as tapes's test() command.
The callback is passed the normal instance of the
Tape class in order to create tests, setups and teardowns.
Do setup for the current test suite. The callback will be passed an object with and
end() method. This must be called to conclude the setup.
Do teardown for the current etst suite. The callback will be passed an object with and
end() method. This must be called to conclude the teardown.