mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 10:20:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a207c74e98
commit
c41864e07f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-test",
|
"name": "ig-test",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"description": "experimental test runner....",
|
"description": "experimental test runner....",
|
||||||
"main": "test.js",
|
"main": "test.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
6
test.js
6
test.js
@ -449,6 +449,7 @@ argv.Parser({
|
|||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
|
// list tests...
|
||||||
default_files: undefined,
|
default_files: undefined,
|
||||||
|
|
||||||
'-l': '-list',
|
'-l': '-list',
|
||||||
@ -500,6 +501,7 @@ argv.Parser({
|
|||||||
process.exit() }},
|
process.exit() }},
|
||||||
|
|
||||||
|
|
||||||
|
// add files/patterns...
|
||||||
test_modules: undefined,
|
test_modules: undefined,
|
||||||
|
|
||||||
// XXX revise error handling...
|
// XXX revise error handling...
|
||||||
@ -534,9 +536,10 @@ argv.Parser({
|
|||||||
`${key}: only support .js modules, got: "${path}"`) }
|
`${key}: only support .js modules, got: "${path}"`) }
|
||||||
// XXX should we handle the load error here???
|
// XXX should we handle the load error here???
|
||||||
that.test_modules[path] =
|
that.test_modules[path] =
|
||||||
require('./' + path.slice(0, -3)) }) }) }},
|
require(process.cwd() +'/'+ path.slice(0, -3)) }) }) }},
|
||||||
|
|
||||||
|
|
||||||
|
// ignore paths...
|
||||||
ignore_files: undefined,
|
ignore_files: undefined,
|
||||||
|
|
||||||
'-i': '-ignore',
|
'-i': '-ignore',
|
||||||
@ -555,6 +558,7 @@ argv.Parser({
|
|||||||
handler: function(){
|
handler: function(){
|
||||||
module.VERBOSE = true }},
|
module.VERBOSE = true }},
|
||||||
|
|
||||||
|
|
||||||
// hide stuff we do not need...
|
// hide stuff we do not need...
|
||||||
'-quiet': undefined,
|
'-quiet': undefined,
|
||||||
'-': undefined,
|
'-': undefined,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user