diff --git a/.travis.yml b/.travis.yml index a54d0e0b..2833b7ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 0355e682..a113dfe8 100644 --- a/README.md +++ b/README.md @@ -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 `: 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-coverage`: This will run all unit tests and produce a coverage report - `npm run lint`: This will run the linter only ## Releases diff --git a/package.json b/package.json index 3b802689..7e4462fb 100644 --- a/package.json +++ b/package.json @@ -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"