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"