On Aug 15, 2005, at 5:55 AM, Hogeweg, Erwin (GE Infrastructure) wrote:

I can't get JCoverage to report the real numbers. It keeps telling me I have 0% coverage for everything.

I have this same problem. My workaround is to use an old version - it's a SNAPSHOT that was since updated, so it no longer exists on ibiblio. I just put it up on my website as http://www.slamb.org/maven/ maven-plugins/plugins/maven-cobertura-plugin-old.jar.

You might also look at this message - <http://sourceforge.net/ mailarchive/forum.php?thread_id=7927281&forum_id=11777>.

Another (possibly related) bug I've encountered is that subsequent runs don't always update the results. I don't remember the circumstances right now - whether adding/removing classes or modifying existing ones. In any case, I've been able to work around it by adding this to my maven.xml:

  <postGoal name="cobertura">
    <delete file="${basedir}/cobertura.ser"/>
  </postGoal>

Good luck.

Regards,
Scott

--
Scott Lamb <http://www.slamb.org/>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to