In my previous mail, the following code is to generate the report:

<build>
   <plugins>
     <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-clover-plugin</artifactId>
       <executions>
         <execution>
           <phase>pre-site</phase>
           <goals>
             <goal>instrument</goal>
           </goals>
         </execution>
       </executions>
     </plugin>
   </plugins>
 </build>



On 6/23/06, Janhavi Phirke <[EMAIL PROTECTED]> wrote:

 The error is coming since the clover database is not generated.

When you want to generate the Clover report, you have to generate the
Clover database first. Otherwise no report will be generated.

To generate the report, add following code in your pom.xml:

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clover-plugin</artifactId>
        <executions>
          <execution>
            <phase>pre-site</phase>
            <goals>
              <goal>instrument</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

And to generate the report, add following code:

  <reporting>
      <plugins>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-clover-plugin</artifactId>
       </plugin>
  </plugins>
  </reporting>

Also to run it, first run the command "mvn install", then "mvn
clover:instrument" and then run the command "mvn clover:clover".

Regards,
Janhavi


 On 6/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

>   Hi,

Has anybody succesfully used clover to generate a report with Mave 2 ?
I have followed docs on *
http://maven.apache.org/plugins/maven-clover-plugin/howto.html*<http://maven.apache.org/plugins/maven-clover-plugin/howto.html>
However, I continually get the error as below …

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.ubs.datait.rkyc.framework.exception.ApplicationExceptionTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running com.ubs.datait.rkyc.framework.exception.BusinessExceptionTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec

Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] [clover:clover]
Clover Version 1.3.12, built on February 08 2006
loaded from: C:\Documents and
Settings\daviesad\.m2\repository\com\cenqua\clover\clover\1.3.12\clover-
1.3.12.jar
250 Seat Team License registered to [EMAIL PROTECTED] , UBS AG
WARN: No coverage data found for
'C:\work\rkyc-framework\frmw-exception\target/clover/clover.db'.
WARN: No coverage recordings found. No report will be generated.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------

And no output. I have tried several ways of executing (in pom and command
line with
mvn clover:instrument clover:clover

Alas to no avail

Any assistance appreciated
Tx
Andy


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.



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




Reply via email to