Skip to content

Commit

Permalink
Fix test coverage
Browse files Browse the repository at this point in the history
The rationale in this change is to put logic as less as possible in
.travis.yml since it's not testable on developers' system.
  • Loading branch information
madarche committed Jun 6, 2015
1 parent b2b6767 commit 07c03b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ language: node_js
node_js:
- "0.12"
- "0.10"
script: "npm run-script test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
script:
- npm run-script test-travis
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
"varify": "0.1.1"
},
"devDependencies": {
"istanbul": "0.3.14",
"blanket": "1.1.7",
"coveralls": "2.11.2",
"jshint": "2.8.0",
"mocha": "2.2.5",
"mocha-lcov-reporter": "0.0.2",
"must": "0.12.0",
"obj_diff": "0.3.0",
"blanket": "1.1.7"
"obj_diff": "0.3.0"
},
"jshintConfig": {
"unused": "vars",
Expand All @@ -38,8 +39,9 @@
"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": "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/"
"test-coverage": "jshint *.json lib/*.js test/*.js && mocha --check-leaks --require blanket -R html-cov > test/coverage.html",
"test-travis": "jshint *.json lib/*.js test/*.js && mocha --check-leaks --require blanket -R mocha-lcov-reporter | coveralls",
"clean": "rm -rf test/coverage.html"
},
"config": {
"blanket": {
Expand Down

0 comments on commit 07c03b0

Please sign in to comment.