Skip to content

glenjamin/nodeunit-tape

Repository files navigation

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.

About

Just enough tape to run nodeunit tests in the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published