Skip to content

Commit

Permalink
Enable partial line coverage with codecov
Browse files Browse the repository at this point in the history
Also move coverage into root
  • Loading branch information
cookpete committed Jun 28, 2018
1 parent 3ba1c8e commit e0d24de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
npm-debug.log
/lib
/test/coverage
/coverage
3 changes: 3 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
comment: false
coverage:
parsers:
javascript:
enable_partials: yes
status:
project:
default:
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"scripts": {
"lint": "standard --verbose | snazzy",
"test": "cross-env NODE_ENV=test nyc mocha test",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"clean": "rm -rf lib test/coverage",
"coverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json",
"clean": "rm -rf lib coverage",
"build": "babel src -d lib",
"preversion": "npm run lint && npm run test",
"version": "babel-node src/index.js --package && git add CHANGELOG.md",
Expand Down Expand Up @@ -89,8 +89,8 @@
"exclude": "src/index.js",
"sourceMap": false,
"instrument": false,
"report-dir": "./test/coverage",
"temp-directory": "./test/coverage/.nyc_output",
"report-dir": "./coverage",
"temp-directory": "./coverage/.nyc_output",
"require": [
"babel-polyfill",
"babel-register"
Expand Down

0 comments on commit e0d24de

Please sign in to comment.