tape(1) | General Commands Manual | tape(1) |
tape
—
tap-producing test harness for node and browsers
tape |
[-r module]
[file] [file ...] |
tape
is a tap-producing test harness for
node and browsers requiring only a few line of code. It can be used for unit
and integration testing. tape
will execute test
described by file option. File are interpreted using glob module by default.
You may therefore need to quote file in order to avoid globbing by shell.
Tests are written in pure javascript, so tests could be run using
Node.js.
-r,
--require
tape
-r a b
-r c will actually load a and c before loading b, since they are flagged
as required modules.-i,
--ignore
tape -i .ignore **/*.js`
--no-only
tape --no-only **/*.js`Alternatively, the environment variable `NODE_TAPE_NO_ONLY_TEST` can be set to `true` to achieve the same behavior; the command-line flag takes precedence.
The assertion methods in `tape` are heavily influenced or copied from the methods in node-tap.
var test = require('tape')
tape 'tests/**/*.js' tape -r './my/local/module' 'tests/**/*.js' tape -r 'babel-register' 'tests/**/*.js'
/usr/share/doc/node-tape/readme.markdown.gz, tap(1), nodejs(1), glob(7)
8/4/17 |