[test] setup istanbul coverage

This commit is contained in:
AdrieanKhisbe 2015-12-03 08:03:12 +01:00
parent bdecdc29cf
commit c8dbede0ca
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@ test/fixtures/*.json
node_modules/ node_modules/
node_modules/* node_modules/*
npm-debug.log npm-debug.log
coverage

View file

@ -18,11 +18,13 @@
"yargs": "^3.19.0" "yargs": "^3.19.0"
}, },
"devDependencies": { "devDependencies": {
"istanbul": "^0.4.1",
"vows": "0.8.x" "vows": "0.8.x"
}, },
"main": "./lib/nconf", "main": "./lib/nconf",
"scripts": { "scripts": {
"test": "vows test/*-test.js test/**/*-test.js --spec" "test": "vows test/*-test.js test/**/*-test.js --spec",
"cover": "istanbul cover vows -- test/*-test.js test/**/*-test.js --spec"
}, },
"engines": { "engines": {
"node": ">= 0.4.0" "node": ">= 0.4.0"