Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-08-14 15:50:24 +03:00
parent a2664b5dd8
commit f5295ce3ae
2 changed files with 10 additions and 5 deletions

View File

@ -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
View File

@ -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',