Skip to content

Commit

Permalink
Add code coverage through coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeca committed Feb 2, 2014
1 parent 40673af commit 6c5c0c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,3 @@
.DS_Store .DS_Store
node_modules/ node_modules/
lib-cov/ coverage/
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,4 @@
language: "node_js" language: "node_js"
after_success: "npm run coveralls"
node_js: node_js:
- "0.10" - "0.10"
9 changes: 7 additions & 2 deletions package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"scripts": { "scripts": {
"test": "mocha --reporter spec", "test": "mocha --reporter spec",
"testwin": "node ./node_modules/mocha/bin/mocha --reporter spec", "testwin": "node ./node_modules/mocha/bin/mocha --reporter spec",
"jshint": "jshint lib/*.js" "jshint": "jshint lib/*.js",
"coverage": "istanbul cover _mocha --report lcovonly -- -R spec",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
}, },
"bin": { "bin": {
"prettyjson": "./bin/prettyjson" "prettyjson": "./bin/prettyjson"
Expand All @@ -33,6 +35,9 @@
"mocha": "1.8.1", "mocha": "1.8.1",
"should": "1.2.2", "should": "1.2.2",
"jshint": "~2.3.0", "jshint": "~2.3.0",
"getversion": "~0.1.1" "getversion": "~0.1.1",
"istanbul": "~0.2.4",
"coveralls": "~2.7.0",
"mocha-lcov-reporter": "0.0.1"
} }
} }

0 comments on commit 6c5c0c1

Please sign in to comment.