Rename coverage to test-coverage and document
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ env:
|
|||||||
matrix:
|
matrix:
|
||||||
- NPM_COMMAND=tsc
|
- NPM_COMMAND=tsc
|
||||||
- NPM_COMMAND=lint
|
- NPM_COMMAND=lint
|
||||||
- NPM_COMMAND=coverage
|
- NPM_COMMAND=test-coverage
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
script: npm run $NPM_COMMAND
|
script: npm run $NPM_COMMAND
|
||||||
|
|||||||
@@ -209,6 +209,7 @@ Tests are run using the following npm scripts:
|
|||||||
- `npm test`: This will run both unit tests and the linter
|
- `npm test`: This will run both unit tests and the linter
|
||||||
- `npm run test-suite <file>`: This will run all tests within a particular file, <file> is the test file name excluding the extension (eg. "Linkifier.test")
|
- `npm run test-suite <file>`: This will run all tests within a particular file, <file> is the test file name excluding the extension (eg. "Linkifier.test")
|
||||||
- `npm run test-debug`: This will run unit tests with `--inspect-brk`, this can then be automatically debugged using [VS Code auto attach](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_auto-attach-feature) or manually attached to by a debugger
|
- `npm run test-debug`: This will run unit tests with `--inspect-brk`, this can then be automatically debugged using [VS Code auto attach](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_auto-attach-feature) or manually attached to by a debugger
|
||||||
|
- `npm run test-coverage`: This will run all unit tests and produce a coverage report
|
||||||
- `npm run lint`: This will run the linter only
|
- `npm run lint`: This will run the linter only
|
||||||
|
|
||||||
## Releases
|
## Releases
|
||||||
|
|||||||
+1
-1
@@ -81,12 +81,12 @@
|
|||||||
"test": "npm-run-all mocha lint",
|
"test": "npm-run-all mocha lint",
|
||||||
"test-debug": "node --inspect-brk node_modules/.bin/gulp test",
|
"test-debug": "node --inspect-brk node_modules/.bin/gulp test",
|
||||||
"test-suite": "gulp mocha-suite --test",
|
"test-suite": "gulp mocha-suite --test",
|
||||||
|
"test-coverage": "gulp mocha-coverage",
|
||||||
"mocha": "gulp test",
|
"mocha": "gulp test",
|
||||||
"build:docs": "jsdoc -c jsdoc.json",
|
"build:docs": "jsdoc -c jsdoc.json",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"build": "gulp build",
|
"build": "gulp build",
|
||||||
"prepublish": "npm run build",
|
"prepublish": "npm run build",
|
||||||
"coverage": "gulp mocha-coverage",
|
|
||||||
"coveralls": "gulp coveralls",
|
"coveralls": "gulp coveralls",
|
||||||
"webpack": "gulp webpack",
|
"webpack": "gulp webpack",
|
||||||
"watch": "gulp watch"
|
"watch": "gulp watch"
|
||||||
|
|||||||
Reference in New Issue
Block a user