You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Owen <mi...@hotmail.com> on 2005/07/21 18:12:32 UTC

[M1] Clover Coverage 0%??

Hi,

I'm using the maven-plugin-report 1.9 for Maven 1.0.2. When I do "maven 
site" all seems well,  but I get 0% coverage of the code, which isn't 
correct. Just wondering whether people know of any reasons why? e.g. certain 
properties need to be set

Many thanks,

Mike



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [M1] Clover Coverage 0%??

Posted by Michael Owen <mi...@hotmail.com>.
I've found that Clover doesn't like the test classes directory (i.e. 
maven.test.dest) being the same as the normal classes directory.

Trying to get a workaround at the mo, so both set of classes can share the 
same folder.

Mike

<br><br><br>&gt;From: &quot;Michael Owen&quot; 
&lt;michaelowenuk@hotmail.com&gt;<br>&gt;Reply-To: &quot;Maven Users 
List&quot; &lt;users@maven.apache.org&gt;<br>&gt;To: 
users@maven.apache.org<br>&gt;Subject: Re: [M1] Clover Coverage 
0%??<br>&gt;Date: Fri, 22 Jul 2005 09:40:57 
+0100<br>&gt;<br>&gt;<br>&gt;(Using Maven 1.0.2)<br>&gt;<br>&gt;I've found 
that in my test reports I have the error:<br>&gt;<br>&gt;------------- 
Standard Error -----------------<br>&gt;[CLOVER] WARNING: The Clover version 
used in instrumentation does <br>&gt;not match the runtime version. You need 
to run instrumented classes <br>&gt;against the same version of Clover that 
you instrumented with.<br>&gt;[CLOVER] WARNING: 
Instr=1.3.6,Runtime=1.3.1_01<br>&gt;ERROR: CLOVER: Unable to load coverage 
database.<br>&gt;ERROR: CLOVER: No coverage data will be 
gathered.<br>&gt;ERROR: CLOVER: java.io.IOException<br>&gt;ERROR: CLOVER: 
Error reading Clover database header [E1101]. <br>&gt;Consider deleting the 
database to force Clover to create a fresh <br>&gt;database. Bad database 
format verison. Expecting '1.3' but got 
<br>&gt;'1.3.3'.<br>&gt;------------- ---------------- 
---------------<br>&gt;<br>&gt;So I guess this is the problem. How can I 
make it so the same <br>&gt;version of Clover is used to run the 
instrumented classes and <br>&gt;instrument etc.? Seems as if there's no 
property to do this 
etc.<br>&gt;<br>&gt;Mike<br>&gt;<br>&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;From: 
Wim Deblauwe 
<br>&gt;&amp;lt;wim.deblauwe@gmail.com&amp;gt;&lt;br&gt;&amp;gt;Reply-To: 
Wim Deblauwe 
<br>&gt;&amp;lt;wim.deblauwe@gmail.com&amp;gt;&lt;br&gt;&amp;gt;To: Maven 
Users List 
<br>&gt;&amp;lt;users@maven.apache.org&amp;gt;&lt;br&gt;&amp;gt;Subject: Re: 
[M1] Clover <br>&gt;Coverage 0%??&lt;br&gt;&amp;gt;Date: Fri, 22 Jul 2005 
08:12:56 <br>&gt;+0200&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;You need to 
compile your classes with clover <br>&gt;instrumentation. Have you 
tried&lt;br&gt;&amp;gt;maven clover:on 
<br>&gt;site?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;regards,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;Wim&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;2005/7/21, 
<br>&gt;Michael Owen 
&amp;lt;michaelowenuk@hotmail.com&amp;gt;:&lt;br&gt;&amp;gt; 
&amp;gt;&lt;br&gt;&amp;gt; <br>&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; 
Correction. I'm using maven-clover-plugin.&lt;br&gt;&amp;gt; 
<br>&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; 
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;gt;From: 
<br>&gt;&amp;quot;Michael Owen&amp;quot;&lt;br&gt;&amp;gt; &amp;gt; 
<br>&gt;&amp;lt;michaelowenuk@hotmail.com&amp;gt;&amp;lt;br&amp;gt;&amp;gt;Reply-To: 
&amp;quot;Maven <br>&gt;Users&lt;br&gt;&amp;gt; &amp;gt; List&amp;quot; 
<br>&gt;&amp;lt;users@maven.apache.org&amp;gt;&amp;lt;br&amp;gt;&amp;gt;To:&lt;br&gt;&amp;gt; 
&amp;gt; <br>&gt;users@maven.apache.org&amp;lt;br&amp;gt;&amp;gt;Subject: 
[M1] Clover <br>&gt;Coverage&lt;br&gt;&amp;gt; &amp;gt; 
0%??&amp;lt;br&amp;gt;&amp;gt;Date: Thu, 21 Jul 2005 
<br>&gt;17:12:32&lt;br&gt;&amp;gt; &amp;gt; 
<br>&gt;+0100&amp;lt;br&amp;gt;&amp;gt;&amp;lt;br&amp;gt;&amp;gt;Hi,&amp;lt;br&amp;gt;&amp;gt;&amp;lt;br&amp;gt;&amp;gt;I'm 
<br>&gt;using the maven-plugin-report&lt;br&gt;&amp;gt; &amp;gt; 1.9 for 
Maven 1.0.2. When <br>&gt;I do &amp;lt;br&amp;gt;&amp;gt;&amp;quot;maven 
site&amp;quot; all seems&lt;br&gt;&amp;gt; &amp;gt; <br>&gt;well, but I get 
0% coverage of the code, &amp;lt;br&amp;gt;&amp;gt;which isn't 
<br>&gt;correct. Just&lt;br&gt;&amp;gt; &amp;gt; wondering whether people 
know of any <br>&gt;&amp;lt;br&amp;gt;&amp;gt;reasons why? e.g. 
certain&lt;br&gt;&amp;gt; &amp;gt; properties need <br>&gt;to be 
set&amp;lt;br&amp;gt;&amp;gt;&amp;lt;br&amp;gt;&amp;gt;Many&lt;br&gt;&amp;gt; 
&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; 
<br>&gt;thanks,&amp;lt;br&amp;gt;&amp;gt;&amp;lt;br&amp;gt;&amp;gt;Mike&amp;lt;br&amp;gt;&amp;gt;&amp;lt;br&amp;gt;&amp;gt;&amp;lt;br&amp;gt;&amp;gt;&amp;lt;br&amp;gt;&amp;gt;---------------------------------------------------------------------&amp;lt;br&amp;gt;&amp;gt;To&lt;br&gt;&amp;gt; 
<br>&gt;&amp;gt; unsubscribe, e-mail: 
<br>&gt;users-unsubscribe@maven.apache.org&amp;lt;br&amp;gt;&amp;gt;For&lt;br&gt;&amp;gt; 
&amp;gt; <br>&gt;additional commands, e-mail: 
<br>&gt;users-help@maven.apache.org&amp;lt;br&amp;gt;&amp;gt;&amp;lt;br&amp;gt;&lt;br&gt;&amp;gt; 
<br>&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; 
&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; 
<br>&gt;---------------------------------------------------------------------&lt;br&gt;&amp;gt; 
<br>&gt;&amp;gt; To unsubscribe, e-mail: 
<br>&gt;users-unsubscribe@maven.apache.org&lt;br&gt;&amp;gt; &amp;gt; For 
additional <br>&gt;commands, e-mail: 
users-help@maven.apache.org&lt;br&gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt; 
<br>&gt;&amp;gt;&lt;br&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;---------------------------------------------------------------------<br>&gt;To 
unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>&gt;For 
additional commands, e-mail: users-help@maven.apache.org<br>&gt;<br>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [M1] Clover Coverage 0%??

Posted by Michael Owen <mi...@hotmail.com>.
(Using Maven 1.0.2)

I've found that in my test reports I have the error:

------------- Standard Error -----------------
[CLOVER] WARNING: The Clover version used in instrumentation does not match 
the runtime version. You need to run instrumented classes against the same 
version of Clover that you instrumented with.
[CLOVER] WARNING: Instr=1.3.6,Runtime=1.3.1_01
ERROR: CLOVER: Unable to load coverage database.
ERROR: CLOVER: No coverage data will be gathered.
ERROR: CLOVER: java.io.IOException
ERROR: CLOVER: Error reading Clover database header [E1101]. Consider 
deleting the database to force Clover to create a fresh database. Bad 
database format verison. Expecting '1.3' but got '1.3.3'.
------------- ---------------- ---------------

So I guess this is the problem. How can I make it so the same version of 
Clover is used to run the instrumented classes and instrument etc.? Seems as 
if there's no property to do this etc.

Mike

<br><br><br>&gt;From: Wim Deblauwe 
&lt;wim.deblauwe@gmail.com&gt;<br>&gt;Reply-To: Wim Deblauwe 
&lt;wim.deblauwe@gmail.com&gt;<br>&gt;To: Maven Users List 
&lt;users@maven.apache.org&gt;<br>&gt;Subject: Re: [M1] Clover Coverage 
0%??<br>&gt;Date: Fri, 22 Jul 2005 08:12:56 +0200<br>&gt;<br>&gt;You need to 
compile your classes with clover instrumentation. Have you 
tried<br>&gt;maven clover:on 
site?<br>&gt;<br>&gt;regards,<br>&gt;<br>&gt;Wim<br>&gt;<br>&gt;2005/7/21, 
Michael Owen &lt;michaelowenuk@hotmail.com&gt;:<br>&gt; &gt;<br>&gt; 
&gt;<br>&gt; &gt; Correction. I'm using maven-clover-plugin.<br>&gt; 
&gt;<br>&gt; &gt; &lt;br&gt;&lt;br&gt;&lt;br&gt;&gt;From: &quot;Michael 
Owen&quot;<br>&gt; &gt; 
&lt;michaelowenuk@hotmail.com&gt;&lt;br&gt;&gt;Reply-To: &quot;Maven 
Users<br>&gt; &gt; List&quot; 
&lt;users@maven.apache.org&gt;&lt;br&gt;&gt;To:<br>&gt; &gt; 
users@maven.apache.org&lt;br&gt;&gt;Subject: [M1] Clover Coverage<br>&gt; 
&gt; 0%??&lt;br&gt;&gt;Date: Thu, 21 Jul 2005 17:12:32<br>&gt; &gt; 
+0100&lt;br&gt;&gt;&lt;br&gt;&gt;Hi,&lt;br&gt;&gt;&lt;br&gt;&gt;I'm using 
the maven-plugin-report<br>&gt; &gt; 1.9 for Maven 1.0.2. When I do 
&lt;br&gt;&gt;&quot;maven site&quot; all seems<br>&gt; &gt; well, but I get 
0% coverage of the code, &lt;br&gt;&gt;which isn't correct. Just<br>&gt; 
&gt; wondering whether people know of any &lt;br&gt;&gt;reasons why? e.g. 
certain<br>&gt; &gt; properties need to be 
set&lt;br&gt;&gt;&lt;br&gt;&gt;Many<br>&gt; &gt;<br>&gt; &gt; 
thanks,&lt;br&gt;&gt;&lt;br&gt;&gt;Mike&lt;br&gt;&gt;&lt;br&gt;&gt;&lt;br&gt;&gt;&lt;br&gt;&gt;---------------------------------------------------------------------&lt;br&gt;&gt;To<br>&gt; 
&gt; unsubscribe, e-mail: 
users-unsubscribe@maven.apache.org&lt;br&gt;&gt;For<br>&gt; &gt; additional 
commands, e-mail: 
users-help@maven.apache.org&lt;br&gt;&gt;&lt;br&gt;<br>&gt; &gt;<br>&gt; 
&gt;<br>&gt; &gt;<br>&gt; &gt; 
---------------------------------------------------------------------<br>&gt; 
&gt; To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>&gt; &gt; 
For additional commands, e-mail: users-help@maven.apache.org<br>&gt; 
&gt;<br>&gt; &gt;<br>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [M1] Clover Coverage 0%??

Posted by Wim Deblauwe <wi...@gmail.com>.
You need to compile your classes with clover instrumentation. Have you tried 
maven clover:on site?

regards,

Wim

2005/7/21, Michael Owen <mi...@hotmail.com>:
> 
> 
> Correction. I'm using maven-clover-plugin.
> 
> <br><br><br>>From: "Michael Owen"
> <mi...@hotmail.com><br>>Reply-To: "Maven Users
> List" <us...@maven.apache.org><br>>To:
> users@maven.apache.org<br>>Subject: [M1] Clover Coverage
> 0%??<br>>Date: Thu, 21 Jul 2005 17:12:32
> +0100<br>><br>>Hi,<br>><br>>I'm using the maven-plugin-report
> 1.9 for Maven 1.0.2. When I do <br>>"maven site" all seems
> well, but I get 0% coverage of the code, <br>>which isn't correct. Just
> wondering whether people know of any <br>>reasons why? e.g. certain
> properties need to be set<br>><br>>Many
> 
> thanks,<br>><br>>Mike<br>><br>><br>><br>>---------------------------------------------------------------------<br>>To
> unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>>For
> additional commands, e-mail: users-help@maven.apache.org<br>><br>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

RE: [M1] Clover Coverage 0%??

Posted by Michael Owen <mi...@hotmail.com>.
Correction. I'm using maven-clover-plugin.

<br><br><br>&gt;From: &quot;Michael Owen&quot; 
&lt;michaelowenuk@hotmail.com&gt;<br>&gt;Reply-To: &quot;Maven Users 
List&quot; &lt;users@maven.apache.org&gt;<br>&gt;To: 
users@maven.apache.org<br>&gt;Subject: [M1] Clover Coverage 
0%??<br>&gt;Date: Thu, 21 Jul 2005 17:12:32 
+0100<br>&gt;<br>&gt;Hi,<br>&gt;<br>&gt;I'm using the maven-plugin-report 
1.9 for Maven 1.0.2. When I do <br>&gt;&quot;maven site&quot; all seems 
well,  but I get 0% coverage of the code, <br>&gt;which isn't correct. Just 
wondering whether people know of any <br>&gt;reasons why? e.g. certain 
properties need to be set<br>&gt;<br>&gt;Many 
thanks,<br>&gt;<br>&gt;Mike<br>&gt;<br>&gt;<br>&gt;<br>&gt;---------------------------------------------------------------------<br>&gt;To 
unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>&gt;For 
additional commands, e-mail: users-help@maven.apache.org<br>&gt;<br>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org