File: nodeunit.md

package info (click to toggle)
node-nodeunit 0.11.2%2Bds3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,044 kB
  • sloc: makefile: 154; sh: 2
file content (66 lines) | stat: -rw-r--r-- 1,791 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
nodeunit(1) -- simple node.js unit testing tool
===============================================

## SYNOPSIS

    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

  __--config FILE__:
      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.

  __--reporter FILE__:
      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-reporters__:
      List available build-in reporters.

  __-t testName__:
      Run specifc test only.

  __-f fullTestName__:
      Run specific test only. fullTestName is built so: "outerGroup - .. - innerGroup - testName".

  __-h__, __--help__:
      Display the help and exit.

  __-v__, __--version__:
      Output version information and exit.

  __<file-or-directory>__:
      You can run nodeunit on specific files or on all *\*.js* files inside
      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>.

## SEE ALSO

node(1)