Skip to content

Commit

Permalink
coverage reporting added.
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Jan 11, 2016
1 parent 1ff5dba commit edb3013
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
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
sudo: false
node_js:
- v4
after_script:
- npm run coveralls
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ business logic, and reusable utilities.
[![Dependency Status](https://david-dm.org/zkochan/remi/status.svg?style=flat)](https://david-dm.org/zkochan/remi)
[![Build Status](https://travis-ci.org/zkochan/remi.svg?branch=master)](https://travis-ci.org/zkochan/remi)
[![npm version](https://badge.fury.io/js/remi.svg)](http://badge.fury.io/js/remi)
[![Coverage Status](https://coveralls.io/repos/zkochan/remi/badge.svg?branch=master&service=github)](https://coveralls.io/github/zkochan/remi?branch=master)


## Installation
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "A plugin registrator.",
"main": "index.js",
"scripts": {
"test": "mocha test/{**/,/}*.js"
"test": "mocha test/{**/,/}*.js",
"coverage": "istanbul cover _mocha test/{**/,/}*.js -- -R spec",
"coveralls": "istanbul cover _mocha test/{**/,/}*.js --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -41,6 +43,8 @@
},
"devDependencies": {
"chai": "^3.4.1",
"coveralls": "^2.11.6",
"istanbul": "^0.4.2",
"mocha": "^2.3.3",
"sinon": "^1.17.2",
"sinon-chai": "^2.8.0"
Expand Down

0 comments on commit edb3013

Please sign in to comment.