wood burning stoves 2.0*
The moose likes Websphere and the fly likes Code Coverage and testing in RAD 7.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Code Coverage and testing in RAD 7.5" Watch "Code Coverage and testing in RAD 7.5" New topic
Author

Code Coverage and testing in RAD 7.5

L Duperval
Ranch Hand

Joined: May 14, 2003
Posts: 63
HI,

I am trying to do code coverage on my application which has two parts: one is the service library with most of the nuts'n'bolts and the other is the Web app portion, with the servlets. When I run code coverage on the service library from within RAD, it works fine. However, when I try to run it for the Web app, I get 0% coverage for everything.

My tests are run from withing RAD, using HttpUnit to call the URLs I am trying to test. I followed this information (http://www.ibm.com/developerworks/rational/library/10/introtocodecoveragetoolinrationalapplicationdeveloper) to enable code coverage. I start the server, run the Unit tests from RAD, the .coveragedata file is generated, then I import it but the only code which has coverage > 0% is the JUnit code. Everything else is at 0% (whether my servlets or the code in the service library).

Does anyone understand what I may be doing wrong?

Thanks,

L


Live Free, Live Happy
L Duperval
Ranch Hand

Joined: May 14, 2003
Posts: 63
Oh, just wanted to add that this is a Maven project, and I'm using the Maven plugin if that has any effect.

L
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Code Coverage and testing in RAD 7.5
 
Similar Threads
Web services not working after I enable App engine support in eclipse
JUNIT how many hours need to learn it ?
Best Testing Unit for Servlets
ant conf file - where to add external libs
j2ee testing for beginner