Skip to content

Commit

Permalink
Add coverage via istanbul and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
dasilvacontin committed Aug 21, 2015
1 parent b783d6f commit e897645
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
coverage
npm-debug.log
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_js:
- '0.11'
- '0.10'
- 'iojs'
after_script:
- npm run coveralls
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"main": "subclass-error.js",
"scripts": {
"lint": "standard",
"unit-test": "mocha --require test/common.js",
"test": "npm run lint && npm run unit-test"
"coverage": "istanbul cover _mocha -- -R spec",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",
"test": "npm run lint && npm run coverage"
},
"repository": {
"type": "git",
Expand All @@ -28,7 +29,10 @@
},
"devDependencies": {
"chai": "^2.1.2",
"coveralls": "^2.11.4",
"istanbul": "^0.3.18",
"mocha": "^2.2.1",
"mocha-lcov-reporter": "0.0.2",
"standard": "^3.2.0"
}
}

0 comments on commit e897645

Please sign in to comment.