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