Page 1 of 1

JSCoverage for the different js files

Posted: 2009-04-20 11:54 am
by subba rao
Hi,

I am very first using this JSCoverage i m using the windows version. In Demos which u have given mentioned that the .html file and .js file are in the same folder but for my application all js files are in one folder and html files are in other folder so how can I generate the JSCoverage report for this and how can I see that report. And I am unable to understand the jscoverage-server command. Can u please provide some Information on this regard.

Thanks & Regards
Subba rao :)

Re: JSCoverage for the different js files

Posted: 2009-04-20 1:40 pm
by Ed
The jscoverage-server.exe program and the jscoverage.exe program are alternatives: you would use one or the other, but not both.

If you're using jscoverage.exe, find a folder that contains both the HTML and JavaScript files somewhere underneath it, and run jscoverage.exe on that.

For example, if your folder structure looks like this:

Code: Select all

src
  html/
    index.html
    ...
  js/
    script.js
    ...
Then run jscoverage.exe on the src folder:

Code: Select all

jscoverage.exe src instrumented
Then open the file instrumented/html/index.html in your web browser.