File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Code Coverage and testing in RAD 7.5

 
L Duperval
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
L Duperval
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, just wanted to add that this is a Maven project, and I'm using the Maven plugin if that has any effect.

L
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic