Page 1 of 1

will instrument javascript code in jsp page?

Posted: 2009-11-19 10:29 am
by indra
Hi,

if we are having some javascript code in jsp pages, JSCoverage is able to instrument that code? For me it is not happening.

Re: will instrument javascript code in jsp page?

Posted: 2009-11-19 5:45 pm
by Ed
Is the JSP page generating HTML (with inline JavaScript) or is it generating pure JavaScript code?

If it is generating HTML with inline JavaScript, it will not be instrumented - JSCoverage never instruments inline JavaScript (it doesn't matter whether the HTML comes from a JSP file, a plain .html file, or something else).

If it is generating pure JavaScript code, it should be instrumented using jscoverage-server --proxy.