Skip to content

Commit

Permalink
Added code coverage tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 24, 2015
1 parent 4051e27 commit c6282ca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ node_modules/
*.dat
.idea
dist/
*.tmp
*.tmp
coverage/
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ node_js:

services:
- mongodb

env:
- CI_SERVER=1
- CI_SERVER=1

after_script:
- npm run coverage:travis
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@
"licence": "MIT",
"main": "./index",
"scripts": {
"test": "mocha",
"test:watch": "mocha -w"
"test": "npm run coverage",
"test:watch": "mocha -w",
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --ui bdd",
"coverage:travis:before": "npm run coverage",
"coverage:travis": "cat coverage/lcov.info | coveralls"
},
"engines": {
"node": ">= 0.8"
Expand All @@ -40,7 +43,8 @@
"chai-fuzzy": "^1.5.0",
"underscore": "^1.8.3",
"tick": "~0.1.1",
"istanbul": "~0.3.13"
"istanbul": "~0.3.13",
"coveralls": "^2.11.2"
},
"keywords": [
"mongodb",
Expand Down

0 comments on commit c6282ca

Please sign in to comment.