nodeunit (1) - Linux Manuals
nodeunit: simple node.js unit testing tool
NAME
nodeunit -- simple node.js unit testing toolSYNOPSIS
nodeunit [options] <file-or-directory> [<file-or-directory> ...]
DESCRIPTION
Nodeunit is a simple unit testing tool based on the node.js assert module.- •
- Simple to use
- •
- Just export the tests from a module
- •
- Helps you avoid common pitfalls when testing asynchronous code
- •
- Easy to add test cases with setUp and tearDown functions if you wish
- •
- Allows the use of mocks and stubs
OPTIONS
Load config options from a JSON file, allows the customisation
of color schemes for the default test reporter etc.
See bin/nodeunit.json for current available options.
You can set the test reporter to a custom module or on of the modules
in nodeunit/lib/reporters, when omitted, the default test runner is used.
List available build-in reporters.
Display the help and exit.
Output version information and exit.
You can run nodeunit on specific files or on all
a directory.
AUTHORS
Written by Caolan McMahon and other nodeunit contributors.
Contributors list: http://github.com/caolan/nodeunit/contributors.
REPORTING BUGS
Report nodeunit bugs to http://github.com/caolan/nodeunit/issues.
COPYRIGHT
Copyright © 2010 Caolan McMahon.
Nodeunit has been released under the MIT license:
http://github.com/caolan/nodeunit/raw/master/LICENSE.