diff options
| author | Gregg Caines <[email protected]> | 2014-08-18 07:00:34 -0700 |
|---|---|---|
| committer | Gregg Caines <[email protected]> | 2014-08-18 07:00:34 -0700 |
| commit | c4a27052a1d44cd30f391d031a2beb632b02d06f (patch) | |
| tree | 3651db527aab5ec76fec711d5671ef03a5c9bb6f | |
| parent | a161f514bd1422fe1409908f06b56b724c90f86a (diff) | |
| parent | ee368feeea7c3fe503a1432bb0a04d1c52821fa7 (diff) | |
| download | node-coveralls-c4a27052a1d44cd30f391d031a2beb632b02d06f.tar.xz node-coveralls-c4a27052a1d44cd30f391d031a2beb632b02d06f.zip | |
Merge pull request #65 from washimimizuku/patch-1
README Patch: Jasmine instructions
| -rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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: |
