There is a database there though debug output for same classes 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.047 sec Running com.ubs.datait.rkyc.framework.exception.BusinessExceptionTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec Results : Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 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. 250 Seat Team License registered to [EMAIL PROTECTED], UBS AG DEBUG: *** Creating current report DEBUG: free heap: 3240040/14049280 DEBUG: Loading database at C:\work\rkyc-framework\frmw-exception\target\clover\clover.db DEBUG: db version = 1151067751290 DEBUG: Loaded 2 file records DEBUG: free heap: 3193320/14049280 DEBUG: loading recordings for span = 0 WARN: No coverage data found for 'C:\work\rkyc-framework\frmw-exception\target/clover/clover.db'. DEBUG: resolving source files on path 'C:/work/rkyc-framework/frmw-exception/src/main/java' DEBUG: looking for C:\work\rkyc-framework\frmw-exception\src\main\java\com\ubs\datait\rkyc\ framework\exc DEBUG: looking for C:\work\rkyc-framework\frmw-exception\src\main\java\com\ubs\datait\rkyc\ framework\exc DEBUG: Processing file 0:FileInfo[name=C:\work\rkyc-framework\frmw-exception\src\main\java\com\ ubs\datai on.java;loc=73;ncloc=23;classes=1] DEBUG: Processing class 0:ClassInfo[name=ApplicationException;start=9;context=0;meths=6;stmts=7; conds=0; DEBUG: Processing file 1:FileInfo[name=C:\work\rkyc-framework\frmw-exception\src\main\java\com\ ubs\datai java;loc=21;ncloc=6;classes=1] DEBUG: Processing class 0:ClassInfo[name=BusinessException;start=14;context=0;meths=1;stmts=1;co nds=0;] DEBUG: Model stats - DEBUG: packages: 1 DEBUG: files: 2 DEBUG: classes: 2 DEBUG: *** Model built WARN: No coverage recordings found. No report will be generated. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7 seconds [INFO] Finished at: Fri Jun 23 14:02:35 BST 2006 [INFO] Final Memory: 9M/17M -----Original Message----- From: Janhavi Phirke [mailto:[EMAIL PROTECTED] Sent: 23 June 2006 13:55 To: Maven Users List Subject: Re: Clover and Maven 2 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\clove > r- > 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] > > 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]