Skip to content

Commit

Permalink
add nyc/coverall coverage tool
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Feb 1, 2017
1 parent 1f35062 commit 02a1592
Show file tree
Hide file tree
Showing 3 changed files with 8 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 @@
node_modules
test/build
.nyc_output
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ language: node_js
node_js:
- "4"
- "6"

after_success: npm run coveralls
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "index.js",
"bin": "cmd.js",
"scripts": {
"test": "standard | snazzy && mocha"
"test": "standard | snazzy && mocha",
"cover": "nyc npm test",
"coveralls": "npm run cover && nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand All @@ -28,9 +30,11 @@
},
"devDependencies": {
"assert": "^1.4.1",
"coveralls": "^2.11.15",
"fs-extra": "^2.0.0",
"is-plain-object": "^2.0.1",
"mocha": "^3.2.0",
"nyc": "^10.1.2",
"snazzy": "^6.0.0",
"standard": "^8.6.0"
}
Expand Down

0 comments on commit 02a1592

Please sign in to comment.