Skip to content

tristanls/scripts-nodeunit-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Script to run nodeunit tests

Resources

Stars

Watchers

Forks

Packages

No packages published