Page 1 of 1

Insrumenting code within jar

Posted: 2007-08-09 6:41 am
by shurymury
Any support for this feature available?

Posted: 2007-08-09 1:51 pm
by siliconforks
Hello shurymury, thanks for your inquiry.

The jscoverage program does not know how to instrument JavaScript files within a .jar file. Of course, you could simply unpack the .jar file, run jscoverage on the unpacked files, and repack the files in a .jar.

I think the main issue here is this: How are the JavaScripts within the .jar file ultimately being executed? Are they being executed by a web browser or by something else (e.g., a Java Virtual Machine)? Currently JSCoverage works only for JavaScript executed in a web browser.

Re: Insrumenting code within jar

Posted: 2008-04-11 10:44 am
by trailblazer
once i jar it with instrumented js file do i check the coverage for that.....