Skip to content

Commit dab1912

Browse files
author
Luke Sneeringer
committed
Improve our coverage configuration.
The first step to fixing it. :-)
1 parent 9de29cf commit dab1912

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ packages/*/AUTHORS
33
packages/*/CONTRIBUTORS
44
packages/*/COPYING
55
**/node_modules
6-
**/coverage/*
6+
**/.coverage/*
77
docs/json
88
*.log

.istanbul.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
reporting:
3+
dir: ./.coverage/
4+
print: summary
5+
watermarks:
6+
branches: [95, 100]
7+
functions: [95, 100]
8+
lines: [95, 100]
9+
statements: [95, 100]

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"glob": "^5.0.9",
1414
"globby": "^3.0.1",
1515
"is": "^3.1.0",
16-
"istanbul": "^0.3.5",
16+
"istanbul": "^0.4.5",
1717
"jscs": "^2.1.1",
1818
"jshint": "^2.9.1",
1919
"lodash.flatten": "^4.3.0",
@@ -41,7 +41,8 @@
4141
"snippet-test": "mocha --timeout 5000 --bail test/docs.js",
4242
"system-test": "mocha packages/*/system-test/*.js --no-timeouts --bail",
4343
"cover": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -x 'packages/*/src/*{/*,/**/*}.js' -- --no-timeouts --bail packages/*/test/*.js -R spec",
44-
"coveralls": "npm run cover && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
44+
"cover-html": "istanbul cover node_modules/mocha/bin/_mocha --report html -x 'packages/*/src/*{/*,/**/*}.js' -- --no-timeouts --bail packages/*/test/*.js -R spec",
45+
"coveralls": "npm run cover && cat ./.coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
4546
},
4647
"license": "Apache-2.0",
4748
"engines": {

0 commit comments

Comments
 (0)