mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 18:40: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
|
||||
*.sw[po]
|
||||
.git
|
||||
coverage
|
||||
node_modules
|
||||
npm-debug.log
|
||||
|
||||
@ -3,4 +3,6 @@
|
||||
*.sw[po]
|
||||
.git
|
||||
.github
|
||||
coverage
|
||||
node_modules
|
||||
npm-debug.log
|
||||
|
||||
@ -5,6 +5,8 @@
|
||||
"main": "object.js",
|
||||
"scripts": {
|
||||
"test": "node ./test.js",
|
||||
"cover-lcov": "c8 -r lcov node ./test.js",
|
||||
"cover": "c8 node ./test.js",
|
||||
"prepublishOnly": "npm test"
|
||||
},
|
||||
"repository": {
|
||||
@ -24,6 +26,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/flynx/object.js#readme",
|
||||
"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
|
||||
that all relevant items should be used, for example:
|
||||
|
||||
${ '$ ./$scriptname basic:*:*'.gray }
|
||||
${ '$ ./$scriptname basic:*:*' }
|
||||
|
||||
Here $scriptname is instructed to run all tests and modifiers
|
||||
only on the basic setup.
|
||||
@ -777,17 +777,17 @@ if(typeof(__filename) != 'undefined'
|
||||
When no tests specified $scriptname will run all tests.
|
||||
`),
|
||||
__examples__: [
|
||||
['$ ./$scriptname'.gray,
|
||||
'run all tests.'],
|
||||
['$ ./$scriptname basic:*:*'.gray,
|
||||
'run all tests and modifiers on "basic" setup.',
|
||||
'(see '+ '$scriptname -l'.gray +' for more info)'],
|
||||
['$ ./$scriptname -v example'.gray,
|
||||
'run "example" test in verbose mode.'],
|
||||
['$ ./$scriptname native:gen3:methods init:gen3:methods'.gray,
|
||||
'run two tests/patterns.'],
|
||||
['$ export VERBOSE=1 && ./$scriptname'.gray,
|
||||
'set verbose mode globally and run tests.'],
|
||||
['$ ./$scriptname',
|
||||
'run all tests.'.gray],
|
||||
['$ ./$scriptname basic:*:*',
|
||||
'run all tests and modifiers on "basic" setup.'.gray,
|
||||
'(see $scriptname -l for more info)'.gray],
|
||||
['$ ./$scriptname -v example',
|
||||
'run "example" test in verbose mode.'.gray],
|
||||
['$ ./$scriptname native:gen3:methods init:gen3:methods',
|
||||
'run two tests/patterns.'.gray],
|
||||
['$ export VERBOSE=1 && ./$scriptname',
|
||||
'set verbose mode globally and run tests.'.gray],
|
||||
],
|
||||
// options...
|
||||
l: 'list',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user