Permalink
Browse files

added coveralls

  • Loading branch information...
1 parent 5bf8a14 commit 5e862a3ae6d71c3496488114f9a1a92a0c929191 @bahmutov committed Feb 21, 2014
Showing with 9 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 README.md
  3. +5 −3 package.json
View
@@ -1,3 +1,4 @@
node_modules/
cover
coverage/
+.coveralls.yml
View
@@ -7,6 +7,7 @@ QUnit plugin that adds assertions to check promises.
[![NPM][qunit-promises-icon]][qunit-promises-url]
[![Build status][ci-image]][ci-url]
+[![Coverage Status][qunit-promises-coverage-image]][qunit-promises-coverage-url]
[![dependencies][dependencies-image]][dependencies-url]
[![dev dependencies][dev-dependencies-image]][dev-dependencies-url]
@@ -162,6 +163,8 @@ License: MIT - do anything with the code, but don't blame me if it does not work
[qunit-promises-url]: https://npmjs.org/package/qunit-promises
[ci-image]: https://travis-ci.org/bahmutov/qunit-promises.png?branch=master
[ci-url]: https://travis-ci.org/bahmutov/qunit-promises
+[qunit-promises-coverage-image]: https://coveralls.io/repos/bahmutov/qunit-promises/badge.png
+[qunit-promises-coverage-url]: https://coveralls.io/r/bahmutov/qunit-promises
[dependencies-image]: https://david-dm.org/bahmutov/qunit-promises.png
[dependencies-url]: https://david-dm.org/bahmutov/qunit-promises
[dev-dependencies-image]: https://david-dm.org/bahmutov/qunit-promises/dev-status.png
View
@@ -20,11 +20,13 @@
"q": "~1.0.0",
"time-grunt": "~0.2.7",
"grunt-npm2bower-sync": "~0.3.0",
- "gt": "~0.8.22"
+ "gt": "~0.8.22",
+ "coveralls": "~2.8.0"
},
"scripts": {
- "test": "grunt",
- "gt": "node ./node_modules/gt qunit-promises.js test/node-tests.js --output"
+ "test": "grunt && npm run gt && npm run coveralls",
+ "gt": "node ./node_modules/gt qunit-promises.js test/node-tests.js --output",
+ "coveralls": "cat cover/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"pre-commit": "grunt && npm run gt",
"pre-push": "grunt qunit",

0 comments on commit 5e862a3

Please sign in to comment.