Rename coverage to test-coverage and document

This commit is contained in:
Daniel Imms
2018-04-13 10:53:45 -07:00
parent 7e8dd9647f
commit 82c16dee73
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ env:
matrix:
- NPM_COMMAND=tsc
- NPM_COMMAND=lint
- NPM_COMMAND=coverage
- NPM_COMMAND=test-coverage
notifications:
email: false
script: npm run $NPM_COMMAND
+1
View File
@@ -209,6 +209,7 @@ Tests are run using the following npm scripts:
- `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, &lt;file&gt; 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-coverage`: This will run all unit tests and produce a coverage report
- `npm run lint`: This will run the linter only
## Releases
+1 -1
View File
@@ -81,12 +81,12 @@
"test": "npm-run-all mocha lint",
"test-debug": "node --inspect-brk node_modules/.bin/gulp test",
"test-suite": "gulp mocha-suite --test",
"test-coverage": "gulp mocha-coverage",
"mocha": "gulp test",
"build:docs": "jsdoc -c jsdoc.json",
"tsc": "tsc",
"build": "gulp build",
"prepublish": "npm run build",
"coverage": "gulp mocha-coverage",
"coveralls": "gulp coveralls",
"webpack": "gulp webpack",
"watch": "gulp watch"