Skip to content

Instantly share code, notes, and snippets.

@vladimir-ivanov
Created November 13, 2012 15:54
Show Gist options
  • Save vladimir-ivanov/4066520 to your computer and use it in GitHub Desktop.
Save vladimir-ivanov/4066520 to your computer and use it in GitHub Desktop.
JSCover example
/*
* STEPS
* 1. Download JSCover from https://github.com/tntim96/JSCover/downloads
* 2. Download htmlunit bin rather than src version from http://sourceforge.net/projects/htmlunit/files/htmlunit/
*/
// start JSCover-all.jar
java -jar target/dist/JSCover-all.jar -ws --document-root=/www/dsa/project/web --no-instrument=js/test --no-instrument=js/lib/vendor --report-dir=target
/**
* Example to use in the brows
* http://localhost:8080/jscoverage.html?js/test/qunit/test.html - where the query string is the relative url to the document root given above (--document-root) and no server
* no server name required - rather qunit tests will run on localhost:8080 domain
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment