nodeunit-tape

0.2.0 • Public • Published

nodeunit-tape

Just enough tape to run nodeunit tests in the browser

Install

nodeunit-tape declares peer dependencies on tape and nodeunit.

npm install --save-dev nodeunit-tape

Create a file that will load and run your tests. If you want this to work with browserify, make sure all of your require statements use exact literal strings.

// run-tests.js
var nodeunit = require('nodeunit-tape');
 
var tests = {
    'module1': require('./tests/module1.js'),
    'module2': require('./tests/module2.js')
};
 
nodeunit.run(tests);

Running

In node

node run-tests.js

In testling locally

browserify -i 'node_modules/nodeunit/lib/reporters/index.js' run-tests.js | testling

See the testling docs for how to run these in "the cloud" against actual browsers.

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i nodeunit-tape

    Weekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • glenjamin