Insrumenting code within jar
-
- Posts: 1
- Joined: 2007-08-09 6:39 am
Insrumenting code within jar
Any support for this feature available?
-
- Site Admin
- Posts: 34
- Joined: 2007-05-26 5:25 am
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.
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.
-
- Posts: 7
- Joined: 2008-04-11 8:13 am
Re: Insrumenting code within jar
once i jar it with instrumented js file ..how do i check the coverage for that.....