[Pkg-javascript-commits] [node-coveralls] 18/332: Update README.md

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:53:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit 3b0c6fdc358ea3899ba4c660bc19db16082a210f
Author: Gregg Caines <gregg at caines.ca>
Date:   Thu Mar 28 13:26:27 2013 -0700

    Update README.md
---
 README.md | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 75766fd..1eebbb1 100644
--- a/README.md
+++ b/README.md
@@ -11,5 +11,11 @@ Instrumenting your app for coverage is probably harder than it needs to be (read
 
 Once your app is instrumented for coverage, and building in travis-ci, you just need to pipe the lcov output to `./node_modules/coveralls/bin/coveralls.js`.
 
-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.  Also note that the TRAVIS_JOB_ID is necessary.
+In mocha, if you've got your code instrumented for coverage, the command for a travis build would look something like this:
+```console
+YOURPACKAGE_COVERAGE=1 ./node_modules/.bin/mocha test -R mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
+```
+Note: this will only run on travis-ci, where a necessary TRAVIS_JOB_ID environment variable will exist.
+
+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).
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list