| 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
|
 |
 |
|
|
subject: Code Coverage and testing in RAD 7.5
|
|
|