Permalink
Browse files

Added code coverage with istanbul and coveralls.

  • Loading branch information...
1 parent 71016db commit 444754b449e42495490befb88a1c68e351c6b3b7 @mcollina committed Nov 29, 2013
Showing with 10 additions and 4 deletions.
  1. +2 −1 .gitignore
  2. +2 −1 .travis.yml
  3. +1 −1 README.md
  4. +5 −1 package.json
View
@@ -15,4 +15,5 @@ node_modules
npm-debug.log
.idea
docs
-.DS_Store
+.DS_Store
+coverage
View
@@ -2,7 +2,8 @@ language: node_js
node_js:
- 0.1
script:
-- npm test
+- npm run coverage
+- npm run publish-coverage
- npm run zuul
env:
global:
View
@@ -1,4 +1,4 @@
-LevelGraph   [![Build Status](https://travis-ci.org/mcollina/levelgraph.png)](https://travis-ci.org/mcollina/levelgraph)
+LevelGraph   [![Build Status](https://travis-ci.org/mcollina/levelgraph.png)](https://travis-ci.org/mcollina/levelgraph)&bnsp;[![Coverage Status](https://coveralls.io/repos/mcollina/levelgraph/badge.png)](https://coveralls.io/r/mcollina/levelgraph)
===========
![Logo](https://github.com/mcollina/node-levelgraph/raw/master/logo.png)
View
@@ -7,6 +7,8 @@
"test": "mocha --recursive --bail --reporter spec test",
"zuul": "zuul test",
"testling": "testling -u",
+ "coverage": "rm -rf coverage; istanbul cover _mocha -- --recursive --reporter spec --bail",
+ "publish-coverage": "cat coverage/lcov.info | coveralls",
"ci": "mocha --recursive --bail --watch test",
"jshint-lib": "jshint lib/*.js",
"jshint-test": "jshint test/*.js"
@@ -48,7 +50,9 @@
"levelup": "~0.18.0",
"pre-commit": "0.0.4",
"testling": "~1.5.3",
- "zuul": "~1.0.4"
+ "zuul": "~1.0.4",
+ "coveralls": "~2.5.0",
+ "istanbul": "~0.1.45"
},
"dependencies": {
"xtend": "~2.1.1",

0 comments on commit 444754b

Please sign in to comment.