add istanbul coverage

This commit is contained in:
Thomas Ruoff
2016-03-06 18:54:59 +01:00
parent 15faee38c9
commit 77c1f3c674
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
node_modules/ node_modules/
switchmon-*.tgz switchmon-*.tgz
coverage

View File

@@ -4,7 +4,7 @@
"description": "Simple helper for turning on/off connected/disconnected monitors with xrandr", "description": "Simple helper for turning on/off connected/disconnected monitors with xrandr",
"main": "cli.js", "main": "cli.js",
"scripts": { "scripts": {
"test": "mocha", "test": "istanbul cover _mocha",
"testwatch": "mocha -w" "testwatch": "mocha -w"
}, },
"bin": { "bin": {
@@ -30,6 +30,7 @@
"xrandr-parse": "^0.1.1" "xrandr-parse": "^0.1.1"
}, },
"devDependencies": { "devDependencies": {
"istanbul": "^0.4.2",
"mocha": "^2.4.5", "mocha": "^2.4.5",
"proxyquire": "^1.7.4", "proxyquire": "^1.7.4",
"sinon": "^1.17.3" "sinon": "^1.17.3"