From 372eaab45e854b0f45dd04aba0d105bddb1d3c2e Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sun, 6 Mar 2016 22:38:09 +0100 Subject: [PATCH] add coveralls --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e7ea0c..da07754 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Simple helper for turning on/off connected/disconnected monitors with xrandr", "main": "cli.js", "scripts": { - "test": "istanbul cover _mocha", + "test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage", "testwatch": "mocha -w" }, "bin": { @@ -30,8 +30,10 @@ "xrandr-parse": "^0.1.1" }, "devDependencies": { + "coveralls": "^2.11.8", "istanbul": "^0.4.2", "mocha": "^2.4.5", + "mocha-lcov-reporter": "^1.2.0", "proxyquire": "^1.7.4", "sinon": "^1.17.3" }