diff --git a/.travis.yml b/.travis.yml index 97320f42..4db6e14e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,3 +11,4 @@ install: script: - make lint - make test + - make coveralls \ No newline at end of file diff --git a/Makefile b/Makefile index 3bad5e62..796c3cac 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,10 @@ lint: .FORCE eslint debug.js test: .FORCE - mocha test/**.js + istanbul cover node_modules/mocha/bin/_mocha -- test/**.js karma start --single-run +coveralls: + cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js + .PHONY: all install clean distclean diff --git a/package.json b/package.json index 042364a8..f4f0e3de 100644 --- a/package.json +++ b/package.json @@ -23,15 +23,18 @@ "devDependencies": { "browserify": "9.0.3", "chai": "^3.5.0", + "coveralls": "^2.11.15", "eslint": "^3.12.1", "eslint-plugin-babel": "^4.0.0", "ghooks": "^1.3.2", + "istanbul": "^0.4.5", "karma": "^1.3.0", "karma-chai": "^0.1.0", "karma-mocha": "^1.3.0", "karma-phantomjs-launcher": "^1.0.2", "karma-sinon": "^1.0.5", "mocha": "^3.2.0", + "mocha-lcov-reporter": "^1.2.0", "sinon": "^1.17.6", "sinon-chai": "^2.8.0" },