mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 10:20:09 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a2664b5dd8
commit
f5295ce3ae
@ -1,8 +1,11 @@
|
||||
{
|
||||
"name": "ig-test",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "experimental test runner....",
|
||||
"main": "test.js",
|
||||
"bin": {
|
||||
"runtests": "test.js"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test-test.js"
|
||||
},
|
||||
|
||||
10
test.js
10
test.js
@ -424,14 +424,16 @@ argv.Parser({
|
||||
|
||||
'-l': '-list',
|
||||
'-list': {
|
||||
doc: ['list available tests.',
|
||||
doc: ['list available tests;',
|
||||
'note that if passing files via -f explicitly they',
|
||||
'must precede the -list flag.'],
|
||||
'must precede the -l/-list flag;',
|
||||
'this has the same defaults as -f'],
|
||||
arg: 'PATH',
|
||||
handler: function(args, key, path){
|
||||
path = path || this.default_files
|
||||
// load path or the defaults if nothing loaded...
|
||||
;(path != this.default_files
|
||||
path
|
||||
&& (path != this.default_files
|
||||
|| this.test_modules == null)
|
||||
&& this.handle('-f', [], key, path)
|
||||
// get key value...
|
||||
@ -474,7 +476,7 @@ argv.Parser({
|
||||
// XXX revise error handling...
|
||||
'-f': '-test-file',
|
||||
'-test-file': {
|
||||
doc: ['test script or filename patter, supports glob.',
|
||||
doc: ['test script or filename pattern, supports glob;',
|
||||
'this flag can be given multiple times for',
|
||||
'multiple paths/patterns'],
|
||||
arg: 'PATH',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user