Created
November 13, 2012 15:54
-
-
Save vladimir-ivanov/4066520 to your computer and use it in GitHub Desktop.
JSCover example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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