Re: Clover oddities

Peter Donald <peter-4lf8KW9E9MLMqX/[email protected]> Sun, 14 Sep 2003 01:01:02 +1000
Newsgroups gmane.comp.java.spice.devel
Message-ID <[email protected]>
On Sat, 13 Sep 2003 10:41 pm, Mauro Talevi wrote:
> was adding unit test coverage to salt and checking it with clover.
> I found the oddest thing happening - the clover cloverage does not seem
> to reflect the unit test written.
> Some clover reports show 0% coverage while there are most definitely tests.
> Also, this behaviour does not seem to be reproducible systematically.
> At times I've been able to get the (seemingly) correct coverage -
> at least more realistic.
> Note that in all cases I've done a maven clean before hand.
>
> Anybody encountered this before?

Every time I run clover ;) 

Just try rerunning it multiple times and it should work. Sometimes making 
junit fork also fixes it. 

-- 
Cheers,

Peter Donald
------------------------------------------------------
 Mark Twain: "In the real world, the right thing never
happens in the right place at the right time. It is 
the task of journalists and historians to rectify 
this error."
------------------------------------------------------ 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf