Skip to content

Commit

Permalink
Adding code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbyoung committed Mar 18, 2014
1 parent c230148 commit df3bb53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules
/coverage
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "https://github.com/wbyoung/gulp-ember-emblem",
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/mocha"
"test": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report $(if [ \"$TRAVIS\" ]; then echo lcovonly; else echo html; fi) -- && if [ \"$TRAVIS\" ]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls; fi"
},
"repository": {
"type": "git",
Expand All @@ -29,6 +29,8 @@
},
"devDependencies": {
"should": "~3.1.0",
"mocha": "~1.17.0"
"mocha": "~1.17.0",
"coveralls": "^2.10.0",
"istanbul": "^0.2.6"
}
}

0 comments on commit df3bb53

Please sign in to comment.