Permalink
Browse files

[minor] add code coverage

  • Loading branch information...
Swaagie committed Apr 4, 2014
1 parent e7e5034 commit e6f09740633703fd3a756d7b9d32ceecff1309a2
Showing with 11 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +5 −2 README.md
  3. +5 −1 package.json
View
@@ -6,3 +6,4 @@ npm-debug.log
example/dist/*
test/dist/*
.DS_Store
+.coveralls.yml
View
@@ -4,9 +4,12 @@ isn't scared for a couple bugs you're more than welcome to go on this adventure.
If not, please wait until 1.0 has been released.
```
-[![Build Status](https://travis-ci.org/bigpipe/bigpipe.png?branch=master)](https://travis-ci.org/bigpipe/bigpipe)
+# BigPipe [![Build Status][status]](https://travis-ci.org/bigpipe/bigpipe) [![NPM version][npmimgurl]](http://badge.fury.io/js/bigpipe) [![Coverage Status][coverage]](http://coveralls.io/r/bigpipe/bigpipe?branch=master)
+
+[status]: https://travis-ci.org/bigpipe/bigpipe.png
+[npmimgurl]: https://badge.fury.io/js/bigpipe.png
+[coverage]: http://coveralls.io/repos/bigpipe/bigpipe/badge.png?branch=master
-# BigPipe
BigPipe is a radical new web framework that is inspired by the concept behind
Facebook's BigPipe. The general idea is to decompose web pages in to small
View
@@ -5,7 +5,8 @@
"main": "index.js",
"engine": "node >= 0.10.0",
"scripts": {
- "test": "mocha $(find test -name '*.test.js')"
+ "test": "NODE_ENV=test ./node_modules/.bin/mocha $(find test -name '*.test.js')",
+ "coverage": "NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js || true && rm -rf ./coverage"
},
"pre-commit": [
"compile",
@@ -32,7 +33,10 @@
},
"devDependencies": {
"chai": "~1.8.1",
+ "coveralls": "~2.8.0",
+ "istanbul": "~0.2.6",
"mocha": "~1.17.1",
+ "mocha-lcov-reporter": "~0.0.1",
"pre-commit": "~0.0.4",
"sinon": "~1.7.3",
"sinon-chai": "~2.4.0"

0 comments on commit e6f0974

Please sign in to comment.