Skip to content

Commit

Permalink
Enable partial line coverage with codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Jun 19, 2018
1 parent 7b2784d commit 488f82d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"main": "lib/ReactPlayer.js",
"typings": "index.d.ts",
"scripts": {
"clean": "rimraf lib demo",
"clean": "rimraf lib demo coverage",
"start": "webpack-dev-server",
"lint": "standard --verbose | snazzy",
"test": "cross-env NODE_ENV=test ava",
"test:coverage": "cross-env NODE_ENV=test nyc ava",
"test:codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"test:codecov": "nyc report --reporter=json && codecov -f coverage/coverage-final.json",
"build:lib": "cross-env NODE_ENV=production babel src -d lib --ignore src/demo",
"build:demo": "cross-env NODE_ENV=production webpack --config webpack.demo.babel.js",
"build:dist": "cross-env NODE_ENV=production webpack --config webpack.dist.babel.js",
Expand Down

0 comments on commit 488f82d

Please sign in to comment.