build: add coverage reporting

parent 5098470a
coverage.html
coverage/
.DS_Store
pids
logs
......@@ -6,7 +6,6 @@ results
*.pid
*.gz
*.log
lib-cov
test/fixtures/foo.bar.baz.css
test/fixtures/style.css
test/fixtures/script.js
......
coverage/
docs/
test/
.travis.yml
......@@ -7,3 +7,4 @@ matrix:
allow_failures:
- node_js: "0.11"
fast_finish: true
script: "npm run-script test-travis"
# Connect [![Build Status](https://travis-ci.org/senchalabs/connect.svg?branch=master)](https://travis-ci.org/senchalabs/connect) [![NPM version](https://badge.fury.io/js/connect.svg)](http://badge.fury.io/js/connect)
# Connect [![NPM version](https://badge.fury.io/js/connect.svg)](http://badge.fury.io/js/connect) [![Build Status](https://travis-ci.org/senchalabs/connect.svg?branch=master)](https://travis-ci.org/senchalabs/connect) [![Coverage Status](https://img.shields.io/coveralls/senchalabs/connect.svg)](https://coveralls.io/r/senchalabs/connect)
Connect is an extensible HTTP server framework for [node](http://nodejs.org), providing high performance "plugins" known as _middleware_.
......
......@@ -54,6 +54,8 @@
"multiparty": "2.2.0"
},
"devDependencies": {
"coveralls": "2.10.0",
"istanbul": "0.2.10",
"should": "~3.3.1",
"mocha": ">= 1.13.0 < 2",
"jade": ">= 0.35.0 < 1",
......@@ -65,6 +67,8 @@
"node": ">= 0.8.0"
},
"scripts": {
"test": "mocha --reporter spec"
"test": "mocha --reporter spec",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter spec",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec && cat ./coverage/lcov.info | coveralls"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment