Skip to content

Commit

Permalink
maint/CI ~ add code coverage support and reporting
Browse files Browse the repository at this point in the history
- `nyc` for code coverage testing/reporting
- CodeCov.io used for coverage report aggregation
  - note: Coveralls.io can't merge multiple CI builds (needed for multi-platform coverage support)
  - ref: <lemurheavy/coveralls-public#613>
  • Loading branch information
rivy committed Oct 4, 2019
1 parent c64ce55 commit 27f5df4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.nyc_output
node_modules
yarn.lock
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"node": ">=6"
},
"scripts": {
"test": "xo && ava && tsd"
"coverage": "nyc report --reporter=text-lcov | codecov --disable=gcov --pipe",
"test": "xo && nyc --silent ava && tsd"
},
"files": [
"index.js",
Expand Down Expand Up @@ -40,7 +41,9 @@
],
"devDependencies": {
"ava": "^1.4.1",
"codecov": "^3.5.0",
"eslint": "^5.16.0",
"nyc": "^14.1.1",
"tsd": "^0.7.1",
"xo": "^0.24.0"
}
Expand Down

0 comments on commit 27f5df4

Please sign in to comment.