aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregg Caines <[email protected]>2013-08-21 09:40:41 -0700
committerGregg Caines <[email protected]>2013-08-21 09:40:41 -0700
commit829e407f57e6a0abb15cafd69a0983165777535b (patch)
tree017d7d683a279b2ee38370aa5fc9487029dab2fb
parente948df5726f19709014018ccceb099323e19c5f7 (diff)
parent6faf921a8270b4cc14791c7643baec3aa5a95ca1 (diff)
downloadnode-coveralls-829e407f57e6a0abb15cafd69a0983165777535b.tar.xz
node-coveralls-829e407f57e6a0abb15cafd69a0983165777535b.zip
Merge pull request #18 from DreamTheater/patch-1
Added short example to Istanbul section
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index daea331..c4ba208 100644
--- a/README.md
+++ b/README.md
@@ -53,7 +53,9 @@ YOURPACKAGE_COVERAGE=1 ./node_modules/.bin/mocha test -R mocha-lcov-reporter | .
Check out an example [Makefile](https://github.com/cainus/urlgrey/blob/master/Makefile) from one of my projects for an example, especially the test-coveralls build target. Note: Travis runs `npm test`, so whatever target you create in your Makefile must be the target that `npm test` runs (This is set in package.json's 'scripts' property).
### [Istanbul](https://github.com/gotwarlost/istanbul)
-TODO
+```sh
+istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
+```
### [Nodeunit](https://github.com/caolan/nodeunit) + [JSCoverage](https://github.com/fishbar/jscoverage)