Skip to content

Commit

Permalink
Merge pull request #50 from hardikj/coverall
Browse files Browse the repository at this point in the history
Add code coverage reporting via node-coveralls
  • Loading branch information
Marko Obrovac committed Dec 31, 2014
2 parents 0542ae7 + 275dd95 commit 2cb6e80
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
coverage/
.coveralls.yml
node_modules
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ before_script:
notifications:
email:
- services@wikimedia.org

script: npm run-script coverage
3 changes: 2 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ issues](https://phabricator.wikimedia.org/maniphest/task/create/?projects=PHID-P

Preparing for production.

[![Build Status](https://travis-ci.org/gwicke/restbase-cassandra.svg?branch=master)](https://travis-ci.org/gwicke/restbase-cassandra)
[![Build Status](https://travis-ci.org/wikimedia/restbase-cassandra.svg?branch=master)](https://travis-ci.org/wikimedia/restbase-cassandra)
[![coverage status](https://coveralls.io/repos/wikimedia/restbase-cassandra/badge.png)](https://coveralls.io/r/wikimedia/restbase-cassandra)

Features:
- basic table storage service with REST interface, backed by Cassandra
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
"node-uuid": "git+https://github.com/gwicke/node-uuid.git#master",
"request": "2.x.x",
"restify": "2.x.x",
"routeswitch": "~0.6.3"
"routeswitch": "~0.6.3",
"istanbul": "0.3.5",
"mocha-lcov-reporter": "0.0.1",
"coveralls": "2.11.2"
},
"scripts": {
"test": "mocha"
"test": "mocha",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"devDependencies": {
"mocha": "x.x.x",
Expand Down

0 comments on commit 2cb6e80

Please sign in to comment.