diff --git a/.gitignore b/.gitignore index badfd3ce..cf052405 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ *~ /node_modules -/test/coverage +/test/coverage.html diff --git a/package.json b/package.json index 0bcaf788..a0b90344 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "mocha": "2.0.1", "must": "0.12.0", "obj_diff": "0.3.0", - "should": "4.4.1" + "should": "4.4.1", + "blanket": "1.1.6" }, "jshintConfig": { "unused": "vars", @@ -37,9 +38,14 @@ "scripts": { "lint": "jshint *.json lib/*.js test/*.js test/cases/*.js test/cases/*.json", "test": "jshint *.json lib/*.js test/*.js test/cases/*.js test/cases/*.json && mocha --check-leaks -R spec", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", + "test-cov": "mocha --require blanket -R html-cov > test/coverage.html", "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" }, + "config": { + "blanket": { + "pattern": "lib/convict.js" + } + }, "bugs": "https://github.com/mozilla/node-convict/issues", "licenses": { "type": "Apache",