Skip to content

Commit

Permalink
Merge pull request #62 from madjid04/master
Browse files Browse the repository at this point in the history
Add code coverage with blanket
  • Loading branch information
zaach committed Jan 26, 2015
2 parents f0f7487 + 2ac5a78 commit 9f92522
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*~
/node_modules
/test/coverage
/test/coverage.html
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 9f92522

Please sign in to comment.