Skip to content

Commit 688ac58

Browse files
lukesneeringerstephenplusplus
authored andcommitted
Improve our coverage configuration. (#2134)
1 parent c522d81 commit 688ac58

4 files changed

Lines changed: 15 additions & 5 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": {

scripts/circle/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ npm run lint
4242
node ./scripts/build.js
4343

4444
export COVERALLS_REPO_TOKEN="kEhKxvu3L9Z4GiClA9LcKYk7G9i9dl83k"
45-
export CIRCLE_ARTIFACTS="$(pwd)/coverage"
45+
export CIRCLE_ARTIFACTS="$(pwd)/.coverage"
4646
npm run postinstall # installs all modules
4747
npm run coveralls
4848

@@ -56,4 +56,4 @@ rebuild
5656
npm run lint
5757
node ./scripts/build.js
5858

59-
set +e
59+
set +e

0 commit comments

Comments
 (0)