Steve,

More information for the record.

What happens is the clover flushes data at JVM shutdown. Thus if your
run your tests AND generate the report in one go (which is the behavior
currently coded in the plugin unfortunately), Clover will not flush its
data, leading to wrong statistics. Running the tests in a separate JVM
(fork = true) will force the flush.

There is a JIRA bug entry to fork by default.

-Vincent

> -----Original Message-----
> From: Steve Garcia [mailto:[EMAIL PROTECTED]
> Sent: 20 December 2003 08:42
> To: 'Maven Users List '
> Subject: RE: Weird Clover Behavior
> 
> I set maven.junit.fork = true and now I have classpath issues,
> java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange.
> 
> Do I need to twiddle my <dependencies> tag?  I put the xerces jar in
my
> root
> classloader but that didn't help.
> 
> But xerces-2.4.0.jar doesn't have org/w3c/dom/ranges/DocumentRange.
I'm
> not
> even sure what artifact that is coming from.  I'm running Java 1.4.2
...
> hmm.
> 
> jeez I'm tired.  I can't even think straight.  :(  I have
commons-lang,
> commons-logging, freemarker, junit, xerces, and hsqldb in my
dependencies
> element.
> 
> -----Original Message-----
> From: Jason van Zyl
> To: Maven Users List
> Sent: 12/19/2003 10:55 PM
> Subject: Re: Weird Clover Behavior
> 
> On Sat, 2003-12-20 at 00:58, Steve Garcia wrote:
> > The Clover report that gets produced from my code is totally off - I
> have
> > close to 90% total coverage for my project and Clover is reporting
> only
> > 8.5%.
> >
> > When I run "maven clover" manually the coverage numbers are closer
to
> what
> > they should be.  But I still see weird behavior like a branch not
> being hit
> > in my equals method when it obviously is.
> >
> > Anybody else see this kind of behavior?  Basically if I do "maven
> clean
> > clover" I get totally inaccurate coverage numbers.  If I then invoke
> "maven
> > clover" they are much closer to what they should be.
> 
> You set:
> 
> maven.junit.fork = true
> 
> In order for clover to work correctly.
> 
> > Thanks, Steve
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --
> jvz.
> 
> Jason van Zyl
> [EMAIL PROTECTED]
> http://tambora.zenplex.org
> 
> In short, man creates for himself a new religion of a rational
> and technical order to justify his work and to be justified in it.
> 
>   -- Jacques Ellul, The Technological Society
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to