Coverage reports do not reflect junit results

View: New views
1 Messages — Rating Filter:   Alert me  

Coverage reports do not reflect junit results

by Nicholls, Marie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
I'm running a Weblogic application so I've followed the instructions in your FAQ to instrument my classes, build my ear file and then deploy the ear on Weblogic.  Once my application is running, I run my junit ant task and then generate my coverage report.  The problem is that my coverage report shows 0% coverage for the classes that are being tested and only minor coverage for the test classes themselves.  For the test classes, the only methods that show any coverage are the static variables and the constructor method.  
 
When I instrumented my classes, I didn't specify a "todir" so the original jar is overwritten with the instrumented jar.  My classpath for the junit ant task specifies this jar as the first entry in the classpath.  Also, I know I've instrumented the classes correctly because if I run any manual tests by just using my application normally, the coverage reports are updated correctly.  
 
I don't think it would make any difference but I am using CactusStrutsTestCase to do in-container testing.
 
The coverage reports generated by Cobertura will really help us with our testing efforts.  I feel like I'm so close to getting this to work so I'd appreciate any help you can offer.
 
Thanks,
Marie


This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel
LightInTheBox - Buy quality products at wholesale price