(moved over from
another thread
Originally posted by Rajkumar Chandrasekaran:
I have a situation here where i must find out the code coverage when my application is running. In more detailed terms, i compile the classes and instrument them and if i build a war or a ear file with the instrumented classes and deploy it on the server like tomcat or jboss and i hit the url the classes work fine, but where will the .ser (trying to use jcoverage). files will be created so that i can generate reports.
The default is to write the .ser file to "cobertura.ser" in the working directory. What that means for your
Tomcat or
JBoss installation, I don't know.
You can override the default at instrumentation time by giving the <cobertura-instrument/> task the "datafile" attribute, pointing to where you want the .ser file to be written.