Update code coverage script to fail if coverage drops below 100%, show only failures.

This commit is contained in:
David Anson 2019-06-01 12:05:55 -07:00
parent 1fe04990a9
commit d009e5b5be
2 changed files with 7 additions and 1 deletions

6
.nycrc.json Normal file
View file

@ -0,0 +1,6 @@
{
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}

View file

@ -13,7 +13,7 @@
"bugs": "https://github.com/DavidAnson/markdownlint/issues",
"scripts": {
"test": "nodeunit test/markdownlint-test.js",
"test-cover": "nyc node_modules/nodeunit/bin/nodeunit test/markdownlint-test.js",
"test-cover": "nyc --check-coverage --skip-full node_modules/nodeunit/bin/nodeunit test/markdownlint-test.js",
"test-extra": "nodeunit test/markdownlint-test-extra.js",
"debug": "node debug node_modules/nodeunit/bin/nodeunit",
"lint": "eslint lib helpers test schema && eslint --env browser --global markdownit --global markdownlint --rule \"no-unused-vars: 0, no-extend-native: 0, max-statements: 0, no-console: 0, no-var: 0\" demo && eslint --rule \"no-console: 0, no-invalid-this: 0, no-shadow: 0, object-property-newline: 0\" example",