Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-09-18 02:01:03 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-09-22 19:34:35 +0300
commit1909ae03ab36a62a00d3b63de80a8c15200095f7 (patch)
tree39c717ee8a8d0ac3d8f8a604fa38c9a71222b563 /package.json
parenta1d375f6b0ee358be41110a49acc1c9fdb775fbe (diff)
Add a 'check-coverage' script so we can track towards completion
We are targetting 100% test coverage for npm v7 GA. Using a coverage-map, we require that any of the newly created tests fully cover the module that they are testing. However, this has the side effect of _always_ hitting 100% coverage when running 'npm test', even though not all modules are being tested. This adds a new 'load-all' test which, in 'check-coverage' mode, tells nyc to include every file in the project. This also removes the double-run of our tests in CI, where we run once and then immediately run the same exact thing again for Coveralls, and sends the 'check-coverage' output to Coveralls instead. PR-URL: https://github.com/npm/cli/pull/1820 Credit: @isaacs Close: #1820 Reviewed-by: @ruyadorno
Diffstat (limited to 'package.json')
-rw-r--r--package.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json
index 772f4a95c..b82c4bbd9 100644
--- a/package.json
+++ b/package.json
@@ -223,6 +223,7 @@
"preversion": "bash scripts/update-authors.sh && git add AUTHORS && git commit -m \"update AUTHORS\" || true",
"licenses": "licensee --production --errors-only",
"test": "tap",
+ "check-coverage": "tap",
"snap": "tap",
"test:nocleanup": "NO_TEST_CLEANUP=1 npm run test --",
"sudotest": "sudo npm run test --",