mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 18:30:08 +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",
|
"name": "ig-test",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"description": "experimental test runner....",
|
"description": "experimental test runner....",
|
||||||
"main": "test.js",
|
"main": "test.js",
|
||||||
|
"bin": {
|
||||||
|
"runtests": "test.js"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node test-test.js"
|
"test": "node test-test.js"
|
||||||
},
|
},
|
||||||
|
|||||||
10
test.js
10
test.js
@ -424,14 +424,16 @@ argv.Parser({
|
|||||||
|
|
||||||
'-l': '-list',
|
'-l': '-list',
|
||||||
'-list': {
|
'-list': {
|
||||||
doc: ['list available tests.',
|
doc: ['list available tests;',
|
||||||
'note that if passing files via -f explicitly they',
|
'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',
|
arg: 'PATH',
|
||||||
handler: function(args, key, path){
|
handler: function(args, key, path){
|
||||||
path = path || this.default_files
|
path = path || this.default_files
|
||||||
// load path or the defaults if nothing loaded...
|
// load path or the defaults if nothing loaded...
|
||||||
;(path != this.default_files
|
path
|
||||||
|
&& (path != this.default_files
|
||||||
|| this.test_modules == null)
|
|| this.test_modules == null)
|
||||||
&& this.handle('-f', [], key, path)
|
&& this.handle('-f', [], key, path)
|
||||||
// get key value...
|
// get key value...
|
||||||
@ -474,7 +476,7 @@ argv.Parser({
|
|||||||
// XXX revise error handling...
|
// XXX revise error handling...
|
||||||
'-f': '-test-file',
|
'-f': '-test-file',
|
||||||
'-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',
|
'this flag can be given multiple times for',
|
||||||
'multiple paths/patterns'],
|
'multiple paths/patterns'],
|
||||||
arg: 'PATH',
|
arg: 'PATH',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user