From 481dddea72cdfbf2de92d1dda40efb28fa89be43 Mon Sep 17 00:00:00 2001 From: Silvano Luciani Date: Tue, 19 Aug 2014 15:47:03 -0700 Subject: [PATCH] feat: add coveralls for coverage reports --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2ea2a744a59..537845620be 100644 --- a/package.json +++ b/package.json @@ -47,13 +47,15 @@ "jshint": "^2.5.2", "mocha": "^1.21.3", "sandboxed-module": "^1.0.1", - "tmp": "0.0.24" + "tmp": "0.0.24", + "coveralls": "^2.11.1" }, "scripts": { "lint": "jshint lib/ regression/ test/", "test": "mocha --recursive --reporter spec", "regression-test": "mocha regression/ --reporter spec --timeout 15000", - "cover": "istanbul cover -x 'regression/*' _mocha -- --timeout 10000 test/* regression/*" + "cover": "istanbul cover -x 'regression/*' _mocha -- --timeout 10000 test/* regression/*", + "coveralls": "istanbul cover -x 'regression/*' _mocha --report lcovonly -- --timeout 10000 test/* regression/* -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" }, "license": "Apache 2" }