aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregg Caines <[email protected]>2014-08-18 07:00:34 -0700
committerGregg Caines <[email protected]>2014-08-18 07:00:34 -0700
commitc4a27052a1d44cd30f391d031a2beb632b02d06f (patch)
tree3651db527aab5ec76fec711d5671ef03a5c9bb6f
parenta161f514bd1422fe1409908f06b56b724c90f86a (diff)
parentee368feeea7c3fe503a1432bb0a04d1c52821fa7 (diff)
downloadnode-coveralls-c4a27052a1d44cd30f391d031a2beb632b02d06f.tar.xz
node-coveralls-c4a27052a1d44cd30f391d031a2beb632b02d06f.zip
Merge pull request #65 from washimimizuku/patch-1
README Patch: Jasmine instructions
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index a7436f5..2f29946 100644
--- a/README.md
+++ b/README.md
@@ -54,10 +54,19 @@ 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)
+
+**With Mocha:**
+
```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
```
+**With Jasmine:**
+
+```sh
+istanbul cover jasmine-node --captureExceptions 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)
Depend on nodeunit, jscoverage and coveralls: