Skip to content

Commit

Permalink
adds code coverage
Browse files Browse the repository at this point in the history
includes:
- adds coverage/ to .gitignore
- adds istanbul and coveralls to package.json
- adds after_success clause to .travis.yml
  • Loading branch information
kgraves committed Jun 15, 2015
1 parent e2ad91a commit 9e98b0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
coverage/
node_modules/
*.log
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -5,3 +5,7 @@ node_js:
- "0.10"
- "iojs"
- "iojs-v1.0.4"
after_success:
istanbul cover node_modules/.bin/jasmine --captureExceptions --report lcovonly &&
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js &&
rm -rf ./coverage
2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -16,6 +16,8 @@
"roles"
],
"devDependencies": {
"coveralls": "2.11.2",
"istanbul": "0.3.15",
"jasmine": "^2.3.1",
"sinon": "^1.15.3"
},
Expand Down

0 comments on commit 9e98b0b

Please sign in to comment.