Skip to content

Commit 5e20c49

Browse files
committed
document the cmd line options '-t' and '-f' in all places properly
1 parent 8040810 commit 5e20c49

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ is used.
233233
* __--config FILE__ - load config options from a JSON file, allows
234234
the customisation of color schemes for the default test reporter etc. See
235235
bin/nodeunit.json for current available options.
236+
* __-t testName__ - run specifc test only.
237+
* __-f fullTestName__ - run specific test only. fullTestName is built so: "outerGroup - .. - innerGroup - testName".
236238
* __--version__ or __-v__ - report nodeunit version
237239
* __--help__ - show nodeunit help
238240

bin/nodeunit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ var usage = "Usage: nodeunit [options] testmodule1.js testfolder [...] \n" +
2929
" --config FILE the path to a JSON file with options\n" +
3030
" --reporter FILE optional path to a reporter file to customize the output\n" +
3131
" --list-reporters list available build-in reporters\n" +
32-
" -t name, specify a test to run\n" +
33-
" -f fullname, specify a specific test to run. fullname is built so: \"outerGroup - .. - innerGroup - testName\"\n" +
32+
" -t testName, specify a test to run\n" +
33+
" -f fullTestName, specify a specific test to run. fullTestName is built so: \"outerGroup - .. - innerGroup - testName\"\n" +
3434
" -h, --help display this help and exit\n" +
3535
" -v, --version output version information and exit";
36-
36+
3737

3838

3939
// load default options

doc/nodeunit.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ Nodeunit is a simple unit testing tool based on the node.js assert module.
2929
__--list-reporters__:
3030
List available build-in reporters.
3131

32-
__-h__, __--help__:
32+
__-t testName__:
33+
Run specifc test only.
34+
35+
__-f fullTestName__:
36+
Run specific test only. fullTestName is built so: "outerGroup - .. - innerGroup - testName".
37+
38+
__-h__, __--help__:
3339
Display the help and exit.
3440

3541
__-v__, __--version__:

0 commit comments

Comments
 (0)