1NODEUNIT(1) NODEUNIT(1)
2
3
4
6 nodeunit -- simple node.js unit testing tool
7
9 nodeunit [options] <file-or-directory> [<file-or-directory> ...]
10
12 Nodeunit is a simple unit testing tool based on the node.js assert mod‐
13 ule.
14
15 · Simple to use
16
17 · Just export the tests from a module
18
19 · Helps you avoid common pitfalls when testing asynchronous code
20
21 · Easy to add test cases with setUp and tearDown functions if you
22 wish
23
24 · Allows the use of mocks and stubs
25
26
27
29 --config FILE:
30 Load config options from a JSON file, allows the customisation
31 of color schemes for the default test reporter etc.
32 See bin/nodeunit.json for current available options.
33
34 --reporter FILE:
35 You can set the test reporter to a custom module or on of the
36 modules
37 in nodeunit/lib/reporters, when omitted, the default test runner
38 is used.
39
40 --list-reporters:
41 List available build-in reporters.
42
43 -h, --help:
44 Display the help and exit.
45
46 -v, --version:
47 Output version information and exit.
48
49 <file-or-directory>:
50 You can run nodeunit on specific files or on all *.js files
51 inside
52 a directory.
53
55 Written by Caolan McMahon and other nodeunit contributors.
56 Contributors list: http://github.com/caolan/nodeunit/contributors.
57
59 Report nodeunit bugs to http://github.com/caolan/nodeunit/issues.
60
62 Copyright © 2010 Caolan McMahon.
63 Nodeunit has been released under the MIT license:
64 http://github.com/caolan/nodeunit/raw/master/LICENSE.
65
67 node(1)
68
69
70
71 October 2010 NODEUNIT(1)