Skip to content

Commit

Permalink
Improve our coverage configuration. (googleapis#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesneeringer authored and stephenplusplus committed Mar 24, 2017
1 parent c522d81 commit 688ac58
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ packages/*/AUTHORS
packages/*/CONTRIBUTORS
packages/*/COPYING
**/node_modules
**/coverage/*
**/.coverage/*
docs/json
*.log
9 changes: 9 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
reporting:
dir: ./.coverage/
print: summary
watermarks:
branches: [95, 100]
functions: [95, 100]
lines: [95, 100]
statements: [95, 100]
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"glob": "^5.0.9",
"globby": "^3.0.1",
"is": "^3.1.0",
"istanbul": "^0.3.5",
"istanbul": "^0.4.5",
"jscs": "^2.1.1",
"jshint": "^2.9.1",
"lodash.flatten": "^4.3.0",
Expand Down Expand Up @@ -41,7 +41,8 @@
"snippet-test": "mocha --timeout 5000 --bail test/docs.js",
"system-test": "mocha packages/*/system-test/*.js --no-timeouts --bail",
"cover": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -x 'packages/*/src/*{/*,/**/*}.js' -- --no-timeouts --bail packages/*/test/*.js -R spec",
"coveralls": "npm run cover && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
"cover-html": "istanbul cover node_modules/mocha/bin/_mocha --report html -x 'packages/*/src/*{/*,/**/*}.js' -- --no-timeouts --bail packages/*/test/*.js -R spec",
"coveralls": "npm run cover && cat ./.coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"license": "Apache-2.0",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/circle/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ npm run lint
node ./scripts/build.js

export COVERALLS_REPO_TOKEN="kEhKxvu3L9Z4GiClA9LcKYk7G9i9dl83k"
export CIRCLE_ARTIFACTS="$(pwd)/coverage"
export CIRCLE_ARTIFACTS="$(pwd)/.coverage"
npm run postinstall # installs all modules
npm run coveralls

Expand All @@ -56,4 +56,4 @@ rebuild
npm run lint
node ./scripts/build.js

set +e
set +e

0 comments on commit 688ac58

Please sign in to comment.