Compare commits

..

No commits in common. "037bf9f9d87918e02521bb90f05492c334b71af6" and "4c7b44c644d0a19366da76114d7a0585bc0c4719" have entirely different histories.

3 changed files with 22 additions and 39 deletions

View File

@ -192,9 +192,6 @@ $ npm install -g ig-test
``` ```
Basic help Basic help
<!-- NOTE: to update this do
:.,/```/-1!node ./test.js --help | sed 's/\x1b\[[0-9;]*m//g'
-->
```shell_session ```shell_session
$ runtests --help $ runtests --help
Usage: test.js [OPTIONS] [CHAIN] ... Usage: test.js [OPTIONS] [CHAIN] ...
@ -218,34 +215,23 @@ only on the basic setup.
Zero or more sets of tests can be specified. Zero or more sets of tests can be specified.
If no tests are specified or '**' is given test.js will run When no tests specified test.js will run all tests.
all found tests:
$ ./test.js
or:
$ ./test.js '**'
Note that using '*' or '**' may require escaping as they may
get expanded by the shell.
Options: Options:
-h, --help - print this message and exit -h, --help - print this message and exit
--version - show test.js version and exit -v, --version - show test.js verion and exit
-l, --list=PATH - list available tests; -l, --list=PATH - list available tests;
note that if passing files via -f explicitly they note that if passing files via -f explicitly they
must precede the -l/-list flag; must precede the -l/-list flag;
this has the same defaults as -f this has the same defaults as -f
--list-found=PATH - like -list but print found test modules and exit --list-found=PATH - like -list but print found test modules and exit
-m, --max-modifier-chain=NUMBER
- Maximum number of modifiers to use in chain
(default: 1)
-f, --test-file=PATH - test script or filename pattern, supports glob; -f, --test-file=PATH - test script or filename pattern, supports glob;
this flag can be given multiple times for this flag can be given multiple times for
multiple paths/patterns multiple paths/patterns
(default: "**/?(*-)test.js") (default: **/?(*-)test.js)
-i, --ignore=PATH - path/pattern to ignore in test file search -i, --ignore=PATH - path/pattern to ignore in test file search
(default: ["node_modules/**"]) (default: node_modules/**)
-v, --verbose - verbose mode --verbose - verbose mode
(env: $VERBOSE) (env: $VERBOSE)
Examples: Examples:
@ -255,9 +241,6 @@ Examples:
$ ./test.js -v example - run "example" test in verbose mode. $ ./test.js -v example - run "example" test in verbose mode.
$ ./test.js native:gen3:methods init:gen3:methods $ ./test.js native:gen3:methods init:gen3:methods
- run two tests/patterns. - run two tests/patterns.
Written by: Alex A. Naanou <alex.nanou@gmail.com>
Version: 1.6.7 / License: BSD-3-Clause
``` ```
List available test components List available test components

0
test-test.js Executable file → Normal file
View File

0
test.js Executable file → Normal file
View File