add coverage

This commit is contained in:
Matias Alejo Garcia 2015-02-20 11:56:34 -03:00
parent 5804ca4456
commit e6c53e6cb2
2 changed files with 7 additions and 1 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
.PHONY: test
test:
./node_modules/.bin/mocha
cover:
./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --reporter spec test

View File

@ -41,7 +41,8 @@
"sinon": "^1.10.3",
"memdown": "^1.0.0",
"jsdoc": "^3.3.0",
"supertest": "*"
"supertest": "*",
"istanbul": "*"
},
"scripts": {
"start": "node server.js"