mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 10:30:08 +00:00
experimenting with code coverage...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ead083df63
commit
f0411d01d3
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,4 +2,6 @@
|
|||||||
*.vim
|
*.vim
|
||||||
*.sw[po]
|
*.sw[po]
|
||||||
.git
|
.git
|
||||||
|
coverage
|
||||||
|
node_modules
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|||||||
@ -3,4 +3,6 @@
|
|||||||
*.sw[po]
|
*.sw[po]
|
||||||
.git
|
.git
|
||||||
.github
|
.github
|
||||||
|
coverage
|
||||||
|
node_modules
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|||||||
@ -5,6 +5,8 @@
|
|||||||
"main": "object.js",
|
"main": "object.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node ./test.js",
|
"test": "node ./test.js",
|
||||||
|
"cover-lcov": "c8 -r lcov node ./test.js",
|
||||||
|
"cover": "c8 node ./test.js",
|
||||||
"prepublishOnly": "npm test"
|
"prepublishOnly": "npm test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@ -24,6 +26,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/flynx/object.js#readme",
|
"homepage": "https://github.com/flynx/object.js#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"colors": "^1.4.0"
|
"colors": "^1.4.0",
|
||||||
|
"c8": "*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
24
test.js
24
test.js
@ -767,7 +767,7 @@ if(typeof(__filename) != 'undefined'
|
|||||||
Each of the items in the test spec can be a "*" indicating
|
Each of the items in the test spec can be a "*" indicating
|
||||||
that all relevant items should be used, for example:
|
that all relevant items should be used, for example:
|
||||||
|
|
||||||
${ '$ ./$scriptname basic:*:*'.gray }
|
${ '$ ./$scriptname basic:*:*' }
|
||||||
|
|
||||||
Here $scriptname is instructed to run all tests and modifiers
|
Here $scriptname is instructed to run all tests and modifiers
|
||||||
only on the basic setup.
|
only on the basic setup.
|
||||||
@ -777,17 +777,17 @@ if(typeof(__filename) != 'undefined'
|
|||||||
When no tests specified $scriptname will run all tests.
|
When no tests specified $scriptname will run all tests.
|
||||||
`),
|
`),
|
||||||
__examples__: [
|
__examples__: [
|
||||||
['$ ./$scriptname'.gray,
|
['$ ./$scriptname',
|
||||||
'run all tests.'],
|
'run all tests.'.gray],
|
||||||
['$ ./$scriptname basic:*:*'.gray,
|
['$ ./$scriptname basic:*:*',
|
||||||
'run all tests and modifiers on "basic" setup.',
|
'run all tests and modifiers on "basic" setup.'.gray,
|
||||||
'(see '+ '$scriptname -l'.gray +' for more info)'],
|
'(see $scriptname -l for more info)'.gray],
|
||||||
['$ ./$scriptname -v example'.gray,
|
['$ ./$scriptname -v example',
|
||||||
'run "example" test in verbose mode.'],
|
'run "example" test in verbose mode.'.gray],
|
||||||
['$ ./$scriptname native:gen3:methods init:gen3:methods'.gray,
|
['$ ./$scriptname native:gen3:methods init:gen3:methods',
|
||||||
'run two tests/patterns.'],
|
'run two tests/patterns.'.gray],
|
||||||
['$ export VERBOSE=1 && ./$scriptname'.gray,
|
['$ export VERBOSE=1 && ./$scriptname',
|
||||||
'set verbose mode globally and run tests.'],
|
'set verbose mode globally and run tests.'.gray],
|
||||||
],
|
],
|
||||||
// options...
|
// options...
|
||||||
l: 'list',
|
l: 'list',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user