Skip to content

Commit

Permalink
build: use nyc for test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Aug 19, 2017
1 parent 0f2a8a5 commit 21ff501
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage
node_modules
.nyc_output/
coverage/
node_modules/
npm-debug.log
package-lock.json
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ before_install:
- "test ! -d node_modules || npm rebuild"
after_script:
# Report coverage
- "test -e ./coverage/lcov.info && npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
- "test -d .nyc_output && npm install coveralls@2 && nyc report --reporter=text-lcov | coveralls"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"body-parser": "1.17.2",
"eslint": "2.13.1",
"express": "^4.12.4",
"istanbul": "^0.4.5",
"mocha": "3.4.2",
"nyc": "10.3.2",
"should": "11.2.1",
"supertest": "1.2.0"
},
"scripts": {
"test": "npm run lint && istanbul cover node_modules/mocha/bin/_mocha",
"test": "npm run lint && nyc --reporter=html --reporter=text mocha",
"lint": "eslint lib test"
}
}

0 comments on commit 21ff501

Please sign in to comment.