1.0.1 • Published 8 years ago

scripts-nodeunit-test v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

scripts-nodeunit-test

Script to run nodeunit tests.

Usage

The script assumes your tests are in the test folder. This script does not include a nodeunit dependency, so that it can use the nodeunit version specified in your project.

Create your scripts/test.js file:

// scripts/test.js
"use strict";

require("scripts-nodeunit-test")();

You can then run npm test.

    Usage: npm test [-- testFile testFile2]
    Examples:
        npm test
        npm test -- testFile
        npm test -- testFile.js
        npm test -- testFile testFile2.js
1.0.1

8 years ago