From 77c1f3c674db429141990a947a6391f7e6e7d311 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sun, 6 Mar 2016 18:54:59 +0100 Subject: [PATCH] add istanbul coverage --- .gitignore | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c1edf67..63248c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ switchmon-*.tgz +coverage diff --git a/package.json b/package.json index 3f262f7..8e7ea0c 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": "mocha", + "test": "istanbul cover _mocha", "testwatch": "mocha -w" }, "bin": { @@ -30,6 +30,7 @@ "xrandr-parse": "^0.1.1" }, "devDependencies": { + "istanbul": "^0.4.2", "mocha": "^2.4.5", "proxyquire": "^1.7.4", "sinon": "^1.17.3"