diff options
| author | Dmytro Nemoga <[email protected]> | 2013-08-16 16:23:18 +0300 |
|---|---|---|
| committer | Dmytro Nemoga <[email protected]> | 2013-08-16 16:23:18 +0300 |
| commit | 169b169da4f504e172c50d63a9b496f96f68bc9b (patch) | |
| tree | 02fbc6b123d5584f45dbc77c20d82bd9f3545ae2 | |
| parent | e948df5726f19709014018ccceb099323e19c5f7 (diff) | |
| download | node-coveralls-169b169da4f504e172c50d63a9b496f96f68bc9b.tar.xz node-coveralls-169b169da4f504e172c50d63a9b496f96f68bc9b.zip | |
Update README.md
Added short example for Istanbul section
| -rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |
