You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Vincent Massol <vm...@pivolis.com> on 2004/09/02 18:41:43 UTC

RE: clover-plugin

Hi Kelly,

I guess that would be more a Cactus question. Let me try to answer as I've
already done this in Cactus land.

The easiest is to do the following I think:

1/ First run clover on your projects that need clovering (for ex: maven
clover:on war). Ensure that you've set the clover database property so that
it points to a single location for all the project you're clovering.

2/ In the project where you run the Cactus tests, ensure to include the
clover dependency and tag it as cactus.bundle so that it finds its way in
the cactified war.

    <dependency>
      <groupId>clover</groupId>
      <artifactId>clover-ant</artifactId>
      <version>1.3_01</version>
      <properties>
        <cactus.bundle>true</cactus.bundle>
      </properties>
    </dependency>

Of course you also need to define the clover database property so that it
points to the same clover database.

3/ Execute the cactus tests (maven cactus)

4/ Execute the clover report.

-Vincent

> -----Original Message-----
> From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> Sent: jeudi 2 septembre 2004 14:47
> To: Maven Users List
> Subject: clover-plugin
> 
> Can someone give me an example on how to generate a clover report for
> cactus tests?
> 
> Thanks
> 
> Kelly.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org



RE: clover-plugin

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Kelly,

You should not do this. It means that the cactus tests are going to be run
by the test plugin which will not work as the cactus are more than pure
junit tests (well they are but they require some environmental setup).

-Vincent

> -----Original Message-----
> From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> Sent: jeudi 2 septembre 2004 21:46
> To: Cactus Users List
> Subject: Re: clover-plugin
> 
> Vincent,
> 
> I tried placing the cactus tests directory in the project.xml as
> <unitTestSourceDirectory>src/test-cactus</unitTestSourceDirectory>. (I
> don't even know if this is right or not but.... I was trying...) then I
> got this
> 
> kelly@yoda:~/workspace/MavenClover$ maven clover:on cactus
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> 
> build:start:
> 
> clover:init:
> 
> clover:on:
>     [echo] Setting Clover compiler
>     [echo] Now using primary build.compiler :
> org.apache.tools.ant.taskdefs.CloverCompilerAdapter
> 
> 
> 
> 
> 
> 
> cactus:init:
> 
> cactus:test:
> cactus:init:
> Overriding previous definition of reference to cactus.classpath
> Overriding previous definition of reference to cactus.scanner.classpath
> 
> cactus:init-report:
>     [mkdir] Created dir:
> /home/kelly/workspace/MavenClover/target/test-cactus-reports
>     [mkdir] Created dir:
> /home/kelly/workspace/MavenClover/target/test-cactus-reports/tomcat5x
> 
> java:prepare-filesystem:
> 
> java:compile:
>     [echo] Compiling to
> /home/kelly/workspace/MavenClover/target/clover/classes
>     [javac] Compiling 5 source files to
> /home/kelly/workspace/MavenClover/target/clover/classes
>     [javac] Clover Version 1.2.3, built on October 20 2003
>     [javac] loaded from:
> file:/home/kelly/.maven/repository/clover/jars/clover-1.2.3.jar
>     [javac] 30 day Evaluation Version distributed via the Maven Jar
> Repository.
>     [javac] Clover is not free. You have 30 days to evaluate it.
>     [javac] Please visit http://www.thecortex.net/clover to obtain a
> licensed version of Clover
>     [javac] No coverage database
> '/home/kelly/workspace/MavenClover/target/clover/database/clover_coverage.
> db'
> found. Creating a fresh one.
>     [javac] Clover all over. Instrumented 5 files.
> 
> cactus:compile:
>     [mkdir] Created dir:
> /home/kelly/workspace/MavenClover/target/test-cactus-classes
>     [javac] Compiling 4 source files to
> /home/kelly/workspace/MavenClover/target/test-cactus-classes
>     [javac] Clover Version 1.2.3, built on October 20 2003
>     [javac] loaded from:
> file:/home/kelly/.maven/repository/clover/jars/clover-1.2.3.jar
>     [javac] 30 day Evaluation Version distributed via the Maven Jar
> Repository.
>     [javac] Clover is not free. You have 30 days to evaluate it.
>     [javac] Please visit http://www.thecortex.net/clover to obtain a
> licensed version of Clover
>     [javac] Updating database at
> '/home/kelly/workspace/MavenClover/target/clover/database/clover_coverage.
> db'
>     [javac] Clover all over. Instrumented 0 files.
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eFilter.java:90:
> cannot resolve symbol
> symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
> location: class org.apache.maven.cactus.sample.SampleFilter
>         filter.init(config);
>               ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eFilter.java:113:
> cannot resolve symbol
> symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
> location: class org.apache.maven.cactus.sample.SampleFilter
>         filter.init(config);
>               ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eFilter.java:136:
> cannot resolve symbol
> symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
> location: class org.apache.maven.cactus.sample.SampleFilter
>         filter.init(config);
>               ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eFilter.java:159:
> cannot resolve symbol
> symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
> location: class org.apache.maven.cactus.sample.SampleFilter
>         filter.init(config);
>               ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eFilter.java:183:
> cannot resolve symbol
> symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
> location: class org.apache.maven.cactus.sample.SampleFilter
>         filter.init(config);
>               ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eFilter.java:206:
> cannot resolve symbol
> symbol  : method doFilter
> (org.apache.cactus.server.HttpServletRequestWrapper,javax.servlet.http.Htt
> pServletResponse,javax.servlet.FilterChain)
> location: class org.apache.maven.cactus.sample.SampleFilter
>         filter.doFilter(request, response, mockFilterChain);
>               ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eBodyTag.java:52:
> cannot resolve symbol
> symbol  : method setPageContext
> (org.apache.cactus.server.PageContextWrapper)
> location: class org.apache.maven.cactus.sample.SampleBodyTag
>         this.tag.setPageContext(this.pageContext);
>         ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eBodyTag.java:56:
> cannot resolve symbol
> symbol  : method setBodyContent (javax.servlet.jsp.tagext.BodyContent)
> location: class org.apache.maven.cactus.sample.SampleBodyTag
>         this.tag.setBodyContent(this.tagContent);
>         ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eServlet.java:42:
> cannot resolve symbol
> symbol  : method isAuthenticated
> (org.apache.cactus.server.HttpServletRequestWrapper)
> location: class org.apache.maven.cactus.sample.SampleServlet
>         assertTrue(servlet.isAuthenticated(request));
>                           ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eServlet.java:53:
> cannot resolve symbol
> symbol  : method isAuthenticated
> (org.apache.cactus.server.HttpServletRequestWrapper)
> location: class org.apache.maven.cactus.sample.SampleServlet
>         assertTrue(!servlet.isAuthenticated(request));
>                            ^
> /tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampl
> eServlet.java:75:
> cannot resolve symbol
> symbol  : method isAuthenticated
> (org.apache.cactus.server.HttpServletRequestWrapper)
> location: class org.apache.maven.cactus.sample.SampleServlet
>         assertTrue(!servlet.isAuthenticated(request));
>                            ^
> 11 errors
> 
> BUILD FAILED
> File...... /home/kelly/.maven/cache/cactus-maven-1.6/plugin.jelly
> Element... ant:javac
> Line...... 144
> Column.... 107
> Compile failed; see the compiler error output for details.
> Total time: 8 seconds
> Finished at: Thu Sep 02 16:41:31 BRT 2004
> 
> Everytime I try something it gets worse ;P
> 
> Kelly.
> 
> Kelly.
> 
> 
> 
> 
> Kelly C. Goedert wrote:
> 
> > Hello Vincent,
> >
> > I tried what you suggest, and I get this:
> >
> > kelly@yoda:~/workspace/MavenClover$ maven clover:on cactus
> > __  __
> > |  \/  |__ _Apache__ ___
> > | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> > |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> >
> > Attempting to download servletapi-2.3.jar.
> > 76K downloaded
> > build:start:
> >
> > clover:init:
> >    [mkdir] Created dir:
> > /home/kelly/workspace/MavenClover/target/clover/classes    [mkdir]
> > Created dir: /home/kelly/workspace/MavenClover/target/clover/database
> >    [mkdir] Created dir:
> > /home/kelly/workspace/MavenClover/target/docs/clover
> >
> > clover:on:
> >    [echo] Setting Clover compiler
> >
> > BUILD FAILED
> > File...... /home/kelly/.maven/cache/maven-clover-plugin-1.5/plugin.jelly
> > Element... ant:pathconvert
> > Line...... 125
> > Column.... 45
> > Reference maven.test.compile.src.set not found.
> > Total time: 17 seconds
> > Finished at: Thu Sep 02 16:18:14 BRT 2004
> >
> >
> > What am I missing now??
> >
> >
> > Vincent Massol wrote:
> >
> >> Hi Kelly,
> >>
> >>
> >>
> >>> -----Original Message-----
> >>> From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> >>> Sent: jeudi 2 septembre 2004 19:35
> >>> To: Cactus Users List
> >>> Subject: Re: clover-plugin
> >>>
> >>>
> >>
> >>
> >> [snip]
> >>
> >> Hmm... I'm not sure if it works with the versions you have, they seem
> >> a bit
> >> oldish.
> >>
> >> I suggest you try running the sample servlet at
> >> http://cvs.apache.org/viewcvs.cgi/jakarta-
> cactus/integration/maven/samples/s
> >>
> >> ervlet/ (by typing maven clover:on cactus). You'll need to create a
> >> build.properties file (you should use build.properties.sample as a
> >> sample).
> >>
> >> If it works it means the versions you have are fine.
> >>
> >> -Vincent
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Re: clover-plugin

Posted by "Kelly C. Goedert" <ke...@nexxera.com>.
Vincent,

I tried placing the cactus tests directory in the project.xml as 
<unitTestSourceDirectory>src/test-cactus</unitTestSourceDirectory>. (I 
don't even know if this is right or not but.... I was trying...) then I 
got this

kelly@yoda:~/workspace/MavenClover$ maven clover:on cactus
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

build:start:

clover:init:

clover:on:
    [echo] Setting Clover compiler
    [echo] Now using primary build.compiler : 
org.apache.tools.ant.taskdefs.CloverCompilerAdapter






cactus:init:

cactus:test:
cactus:init:
Overriding previous definition of reference to cactus.classpath
Overriding previous definition of reference to cactus.scanner.classpath

cactus:init-report:
    [mkdir] Created dir: 
/home/kelly/workspace/MavenClover/target/test-cactus-reports
    [mkdir] Created dir: 
/home/kelly/workspace/MavenClover/target/test-cactus-reports/tomcat5x

java:prepare-filesystem:

java:compile:
    [echo] Compiling to 
/home/kelly/workspace/MavenClover/target/clover/classes
    [javac] Compiling 5 source files to 
/home/kelly/workspace/MavenClover/target/clover/classes
    [javac] Clover Version 1.2.3, built on October 20 2003
    [javac] loaded from: 
file:/home/kelly/.maven/repository/clover/jars/clover-1.2.3.jar
    [javac] 30 day Evaluation Version distributed via the Maven Jar 
Repository.
    [javac] Clover is not free. You have 30 days to evaluate it.
    [javac] Please visit http://www.thecortex.net/clover to obtain a 
licensed version of Clover
    [javac] No coverage database 
'/home/kelly/workspace/MavenClover/target/clover/database/clover_coverage.db' 
found. Creating a fresh one.
    [javac] Clover all over. Instrumented 5 files.

cactus:compile:
    [mkdir] Created dir: 
/home/kelly/workspace/MavenClover/target/test-cactus-classes
    [javac] Compiling 4 source files to 
/home/kelly/workspace/MavenClover/target/test-cactus-classes
    [javac] Clover Version 1.2.3, built on October 20 2003
    [javac] loaded from: 
file:/home/kelly/.maven/repository/clover/jars/clover-1.2.3.jar
    [javac] 30 day Evaluation Version distributed via the Maven Jar 
Repository.
    [javac] Clover is not free. You have 30 days to evaluate it.
    [javac] Please visit http://www.thecortex.net/clover to obtain a 
licensed version of Clover
    [javac] Updating database at 
'/home/kelly/workspace/MavenClover/target/clover/database/clover_coverage.db'
    [javac] Clover all over. Instrumented 0 files.
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:90: 
cannot resolve symbol
symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
        filter.init(config);
              ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:113: 
cannot resolve symbol
symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
        filter.init(config);
              ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:136: 
cannot resolve symbol
symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
        filter.init(config);
              ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:159: 
cannot resolve symbol
symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
        filter.init(config);
              ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:183: 
cannot resolve symbol
symbol  : method init (org.apache.cactus.server.FilterConfigWrapper)
location: class org.apache.maven.cactus.sample.SampleFilter
        filter.init(config);
              ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleFilter.java:206: 
cannot resolve symbol
symbol  : method doFilter 
(org.apache.cactus.server.HttpServletRequestWrapper,javax.servlet.http.HttpServletResponse,javax.servlet.FilterChain)
location: class org.apache.maven.cactus.sample.SampleFilter
        filter.doFilter(request, response, mockFilterChain);
              ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleBodyTag.java:52: 
cannot resolve symbol
symbol  : method setPageContext 
(org.apache.cactus.server.PageContextWrapper)
location: class org.apache.maven.cactus.sample.SampleBodyTag
        this.tag.setPageContext(this.pageContext);
        ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleBodyTag.java:56: 
cannot resolve symbol
symbol  : method setBodyContent (javax.servlet.jsp.tagext.BodyContent)
location: class org.apache.maven.cactus.sample.SampleBodyTag
        this.tag.setBodyContent(this.tagContent);
        ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleServlet.java:42: 
cannot resolve symbol
symbol  : method isAuthenticated 
(org.apache.cactus.server.HttpServletRequestWrapper)
location: class org.apache.maven.cactus.sample.SampleServlet
        assertTrue(servlet.isAuthenticated(request));
                          ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleServlet.java:53: 
cannot resolve symbol
symbol  : method isAuthenticated 
(org.apache.cactus.server.HttpServletRequestWrapper)
location: class org.apache.maven.cactus.sample.SampleServlet
        assertTrue(!servlet.isAuthenticated(request));
                           ^
/tmp/clover28846.tmp/src28847.tmp/org/apache/maven/cactus/sample/TestSampleServlet.java:75: 
cannot resolve symbol
symbol  : method isAuthenticated 
(org.apache.cactus.server.HttpServletRequestWrapper)
location: class org.apache.maven.cactus.sample.SampleServlet
        assertTrue(!servlet.isAuthenticated(request));
                           ^
11 errors

BUILD FAILED
File...... /home/kelly/.maven/cache/cactus-maven-1.6/plugin.jelly
Element... ant:javac
Line...... 144
Column.... 107
Compile failed; see the compiler error output for details.
Total time: 8 seconds
Finished at: Thu Sep 02 16:41:31 BRT 2004

Everytime I try something it gets worse ;P

Kelly.

Kelly.




Kelly C. Goedert wrote:

> Hello Vincent,
>
> I tried what you suggest, and I get this:
>
> kelly@yoda:~/workspace/MavenClover$ maven clover:on cactus
> __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
>
> Attempting to download servletapi-2.3.jar.
> 76K downloaded
> build:start:
>
> clover:init:
>    [mkdir] Created dir: 
> /home/kelly/workspace/MavenClover/target/clover/classes    [mkdir] 
> Created dir: /home/kelly/workspace/MavenClover/target/clover/database
>    [mkdir] Created dir: 
> /home/kelly/workspace/MavenClover/target/docs/clover
>
> clover:on:
>    [echo] Setting Clover compiler
>
> BUILD FAILED
> File...... /home/kelly/.maven/cache/maven-clover-plugin-1.5/plugin.jelly
> Element... ant:pathconvert
> Line...... 125
> Column.... 45
> Reference maven.test.compile.src.set not found.
> Total time: 17 seconds
> Finished at: Thu Sep 02 16:18:14 BRT 2004
>
>
> What am I missing now??
>
>
> Vincent Massol wrote:
>
>> Hi Kelly,
>>
>>  
>>
>>> -----Original Message-----
>>> From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
>>> Sent: jeudi 2 septembre 2004 19:35
>>> To: Cactus Users List
>>> Subject: Re: clover-plugin
>>>
>>>   
>>
>>
>> [snip]
>>
>> Hmm... I'm not sure if it works with the versions you have, they seem 
>> a bit
>> oldish.
>>
>> I suggest you try running the sample servlet at
>> http://cvs.apache.org/viewcvs.cgi/jakarta-cactus/integration/maven/samples/s 
>>
>> ervlet/ (by typing maven clover:on cactus). You'll need to create a
>> build.properties file (you should use build.properties.sample as a 
>> sample).
>>
>> If it works it means the versions you have are fine.
>>
>> -Vincent
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>>
>>  
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>


Re: clover-plugin

Posted by "Kelly C. Goedert" <ke...@nexxera.com>.
Hello Vincent,

now it worked! The problem was the clover plugin verion.

Thanks a lot!

Kelly.


Vincent Massol wrote:

>Kelly,
>
>Are you running the cactus sample here? I'd suggest you start by this and
>then work from there.
>
>You can also try the following version of the clover plugin
>(http://cvs.apache.org/~vmassol/maven-clover-plugin-1.6-SNAPSHOT.jar).
>You'll need to delete your maven cache and put it in your mavenhome/plugins
>dir.
>
>-Vincent
>
>  
>
>>-----Original Message-----
>>From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
>>Sent: jeudi 2 septembre 2004 21:21
>>To: Cactus Users List
>>Subject: Re: clover-plugin
>>
>>Hello Vincent,
>>
>>I tried what you suggest, and I get this:
>>
>>kelly@yoda:~/workspace/MavenClover$ maven clover:on cactus
>> __  __
>>|  \/  |__ _Apache__ ___
>>| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>>|_|  |_\__,_|\_/\___|_||_|  v. 1.0
>>
>>Attempting to download servletapi-2.3.jar.
>>76K downloaded
>>build:start:
>>
>>clover:init:
>>    [mkdir] Created dir:
>>/home/kelly/workspace/MavenClover/target/clover/classes    [mkdir]
>>Created dir: /home/kelly/workspace/MavenClover/target/clover/database
>>    [mkdir] Created dir:
>>/home/kelly/workspace/MavenClover/target/docs/clover
>>
>>clover:on:
>>    [echo] Setting Clover compiler
>>
>>BUILD FAILED
>>File...... /home/kelly/.maven/cache/maven-clover-plugin-1.5/plugin.jelly
>>Element... ant:pathconvert
>>Line...... 125
>>Column.... 45
>>Reference maven.test.compile.src.set not found.
>>Total time: 17 seconds
>>Finished at: Thu Sep 02 16:18:14 BRT 2004
>>
>>
>>What am I missing now??
>>
>>
>>Vincent Massol wrote:
>>
>>    
>>
>>>Hi Kelly,
>>>
>>>
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
>>>>Sent: jeudi 2 septembre 2004 19:35
>>>>To: Cactus Users List
>>>>Subject: Re: clover-plugin
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>[snip]
>>>
>>>Hmm... I'm not sure if it works with the versions you have, they seem a
>>>      
>>>
>>bit
>>    
>>
>>>oldish.
>>>
>>>I suggest you try running the sample servlet at
>>>http://cvs.apache.org/viewcvs.cgi/jakarta-
>>>      
>>>
>>cactus/integration/maven/samples/s
>>    
>>
>>>ervlet/ (by typing maven clover:on cactus). You'll need to create a
>>>build.properties file (you should use build.properties.sample as a
>>>      
>>>
>>sample).
>>    
>>
>>>If it works it means the versions you have are fine.
>>>
>>>-Vincent
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>  
>


RE: clover-plugin

Posted by Vincent Massol <vm...@pivolis.com>.
Kelly,

Are you running the cactus sample here? I'd suggest you start by this and
then work from there.

You can also try the following version of the clover plugin
(http://cvs.apache.org/~vmassol/maven-clover-plugin-1.6-SNAPSHOT.jar).
You'll need to delete your maven cache and put it in your mavenhome/plugins
dir.

-Vincent

> -----Original Message-----
> From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> Sent: jeudi 2 septembre 2004 21:21
> To: Cactus Users List
> Subject: Re: clover-plugin
> 
> Hello Vincent,
> 
> I tried what you suggest, and I get this:
> 
> kelly@yoda:~/workspace/MavenClover$ maven clover:on cactus
>  __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0
> 
> Attempting to download servletapi-2.3.jar.
> 76K downloaded
> build:start:
> 
> clover:init:
>     [mkdir] Created dir:
> /home/kelly/workspace/MavenClover/target/clover/classes    [mkdir]
> Created dir: /home/kelly/workspace/MavenClover/target/clover/database
>     [mkdir] Created dir:
> /home/kelly/workspace/MavenClover/target/docs/clover
> 
> clover:on:
>     [echo] Setting Clover compiler
> 
> BUILD FAILED
> File...... /home/kelly/.maven/cache/maven-clover-plugin-1.5/plugin.jelly
> Element... ant:pathconvert
> Line...... 125
> Column.... 45
> Reference maven.test.compile.src.set not found.
> Total time: 17 seconds
> Finished at: Thu Sep 02 16:18:14 BRT 2004
> 
> 
> What am I missing now??
> 
> 
> Vincent Massol wrote:
> 
> >Hi Kelly,
> >
> >
> >
> >>-----Original Message-----
> >>From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> >>Sent: jeudi 2 septembre 2004 19:35
> >>To: Cactus Users List
> >>Subject: Re: clover-plugin
> >>
> >>
> >>
> >
> >[snip]
> >
> >Hmm... I'm not sure if it works with the versions you have, they seem a
> bit
> >oldish.
> >
> >I suggest you try running the sample servlet at
> >http://cvs.apache.org/viewcvs.cgi/jakarta-
> cactus/integration/maven/samples/s
> >ervlet/ (by typing maven clover:on cactus). You'll need to create a
> >build.properties file (you should use build.properties.sample as a
> sample).
> >
> >If it works it means the versions you have are fine.
> >
> >-Vincent
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Re: clover-plugin

Posted by "Kelly C. Goedert" <ke...@nexxera.com>.
Hello Vincent,

I tried what you suggest, and I get this:

kelly@yoda:~/workspace/MavenClover$ maven clover:on cactus
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

Attempting to download servletapi-2.3.jar.
76K downloaded
build:start:

clover:init:
    [mkdir] Created dir: 
/home/kelly/workspace/MavenClover/target/clover/classes    [mkdir] 
Created dir: /home/kelly/workspace/MavenClover/target/clover/database
    [mkdir] Created dir: 
/home/kelly/workspace/MavenClover/target/docs/clover

clover:on:
    [echo] Setting Clover compiler

BUILD FAILED
File...... /home/kelly/.maven/cache/maven-clover-plugin-1.5/plugin.jelly
Element... ant:pathconvert
Line...... 125
Column.... 45
Reference maven.test.compile.src.set not found.
Total time: 17 seconds
Finished at: Thu Sep 02 16:18:14 BRT 2004


What am I missing now??


Vincent Massol wrote:

>Hi Kelly,
>
>  
>
>>-----Original Message-----
>>From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
>>Sent: jeudi 2 septembre 2004 19:35
>>To: Cactus Users List
>>Subject: Re: clover-plugin
>>
>>    
>>
>
>[snip]
>
>Hmm... I'm not sure if it works with the versions you have, they seem a bit
>oldish.
>
>I suggest you try running the sample servlet at
>http://cvs.apache.org/viewcvs.cgi/jakarta-cactus/integration/maven/samples/s
>ervlet/ (by typing maven clover:on cactus). You'll need to create a
>build.properties file (you should use build.properties.sample as a sample).
>
>If it works it means the versions you have are fine.
>
>-Vincent
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>  
>


RE: clover-plugin

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Kelly,

> -----Original Message-----
> From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> Sent: jeudi 2 septembre 2004 19:35
> To: Cactus Users List
> Subject: Re: clover-plugin
> 

[snip]

Hmm... I'm not sure if it works with the versions you have, they seem a bit
oldish.

I suggest you try running the sample servlet at
http://cvs.apache.org/viewcvs.cgi/jakarta-cactus/integration/maven/samples/s
ervlet/ (by typing maven clover:on cactus). You'll need to create a
build.properties file (you should use build.properties.sample as a sample).

If it works it means the versions you have are fine.

-Vincent


Re: clover-plugin

Posted by "Kelly C. Goedert" <ke...@nexxera.com>.
Vincent Massol wrote:

>  
>
>>-----Original Message-----
>>From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
>>Sent: jeudi 2 septembre 2004 19:08
>>To: Cactus Users List
>>Subject: Re: clover-plugin
>>
>>Hello Vincent,
>>
>>thanks for trying to help me again. I followed what you said but still
>>my servlet tests(built with cactus) are not being show as covered on the
>>report. Here is what I did:
>>
>>1. Put clover database property on project.properties like this
>>    maven.clover.database.dir=target/clover/database
>>    
>>
>
>  
>
Took it off

>Actually in your case it's not required as you've got a single maven
>project. It is only required for multiproject builds.
>
>  
>
>>2. Put the clover dependency on the project:
>>    <dependency>
>>              <groupId>clover</groupId>
>>                  <artifactId>clover-ant</artifactId>
>>                  <version>1.3_01</version>
>>                  <properties>
>>                    <cactus.bundle>true</cactus.bundle>
>>
>><maven.clover.database.dir>target/clover/database</maven.clover.database.d
>>ir>
>>    
>>
>
>Errr? What's this? :-)
>
>  
>


This is something I didn't know how configure to be true (how it should 
be done?????)

>>                  </properties>
>>        </dependency>
>>
>>3. maven clover:on war
>>    
>>
>
>Does your code get clovered? (you can show us the console output)
>
>  
>

This is the output

kelly@yoda:~/workspace/MavenCC$ maven clover:on war
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0

build:start:

clover:init:
    [mkdir] Created dir: /home/kelly/workspace/MavenCC/target/clover/classes
    [mkdir] Created dir: 
/home/kelly/workspace/MavenCC/target/clover/database
    [mkdir] Created dir: /home/kelly/workspace/MavenCC/target/docs/clover

clover:on:
    [echo] Setting Clover compiler
    [echo] Now using primary build.compiler : 
org.apache.tools.ant.taskdefs.CloverCompilerAdapter






war:init:

java:prepare-filesystem:

java:compile:
    [echo] Compiling to /home/kelly/workspace/MavenCC/target/clover/classes
    [javac] Compiling 2 source files to 
/home/kelly/workspace/MavenCC/target/clover/classes
    [javac] Clover Version 1.2.3, built on October 20 2003
    [javac] loaded from: 
file:/home/kelly/.maven/repository/clover/jars/clover-1.2.3.jar
    [javac] 30 day Evaluation Version distributed via the Maven Jar 
Repository.
    [javac] Clover is not free. You have 30 days to evaluate it.
    [javac] Please visit http://www.thecortex.net/clover to obtain a 
licensed version of Clover
    [javac] No coverage database 
'/home/kelly/workspace/MavenCC/target/clover/database/clover_coverage.db' 
found. Creating a fresh one.
    [javac] Clover all over. Instrumented 2 files.

java:jar-resources:

test:prepare-filesystem:
    [mkdir] Created dir: /home/kelly/workspace/MavenCC/target/test-classes
    [mkdir] Created dir: /home/kelly/workspace/MavenCC/target/test-reports

test:test-resources:

test:compile:
    [javac] Compiling 1 source file to 
/home/kelly/workspace/MavenCC/target/test-classes
    [javac] Clover Version 1.2.3, built on October 20 2003
    [javac] loaded from: 
file:/home/kelly/.maven/repository/clover/jars/clover-1.2.3.jar
    [javac] 30 day Evaluation Version distributed via the Maven Jar 
Repository.
    [javac] Clover is not free. You have 30 days to evaluate it.
    [javac] Please visit http://www.thecortex.net/clover to obtain a 
licensed version of Clover
    [javac] Updating database at 
'/home/kelly/workspace/MavenCC/target/clover/database/clover_coverage.db'
    [javac] Clover all over. Instrumented 0 files.

test:test:
    [junit] Running com.nexxera.TestSoma
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.604 sec

war:webapp:
    [echo] Assembling webapp mavencc
    [mkdir] Created dir: /home/kelly/workspace/MavenCC/target/mavencc
    [mkdir] Created dir: 
/home/kelly/workspace/MavenCC/target/mavencc/WEB-INF
    [mkdir] Created dir: 
/home/kelly/workspace/MavenCC/target/mavencc/WEB-INF/lib
    [mkdir] Created dir: 
/home/kelly/workspace/MavenCC/target/mavencc/WEB-INF/tld
    [mkdir] Created dir: 
/home/kelly/workspace/MavenCC/target/mavencc/WEB-INF/classes
    [copy] Copying 1 file to 
/home/kelly/workspace/MavenCC/target/mavencc/WEB-INF

war:war:
    [echo] Building WAR mavencc
    [jar] Building jar: 
/home/kelly/workspace/MavenCC/target/mavencc-build.war
BUILD SUCCESSFUL
Total time: 9 seconds
Finished at: Thu Sep 02 14:33:09 BRT 2004



>>4. maven cactus
>>
>>5. maven clover:report
>>
>>    
>>
>
>[snip]
>
>I've just tried it on the cactus sample
>(http://cvs.apache.org/viewcvs.cgi/jakarta-cactus/integration/maven/samples/
>servlet/) by typing:
>
>maven clover:on cactus
>
>and then 
>
>maven clover:report
>
>and it worked fine... (showing 74% test coverage)
>
>Maybe you're using old versions of the Maven Clover plugin or the Cactus
>plugin for Maven?
>
>  
>

The versions are clover-plugin 1.5 and cactus plugin 1.6


Kelly.

>Thanks
>-Vincent
>
>  
>
>>All the commands were successful, but my report only shows as the
>>classes that are not servlets are covered. Bellow is my servlet and its
>>test class.
>>
>>import javax.servlet.http.HttpServlet;
>>import javax.servlet.http.HttpServletRequest;
>>
>>public class SampleServlet extends HttpServlet
>>{
>>    public void saveToSession(HttpServletRequest request)
>>    {
>>        String testparam = request.getParameter("testparam");
>>        request.getSession().setAttribute("testAttribute", testparam);
>>    }
>>}
>>
>>import junit.framework.Test;
>>import junit.framework.TestSuite;
>>
>>import org.apache.cactus.ServletTestCase;
>>import org.apache.cactus.WebRequest;
>>
>>public class TestSampleServlet extends ServletTestCase
>>{
>>    public TestSampleServlet(String theName)
>>    {
>>        super(theName);
>>    }
>>
>>    public static Test suite()
>>    {
>>        return new TestSuite(TestSampleServlet.class);
>>    }
>>
>>    public void beginSaveToSessionOK(WebRequest webRequest)
>>    {
>>        webRequest.addParameter("testparam", "it works!");
>>    }
>>
>>    public void testSaveToSessionOK()
>>    {
>>        SampleServlet servlet = new SampleServlet();
>>        servlet.saveToSession(request);
>>        assertEquals("it works!", session.getAttribute("testAttribute"));
>>    }
>>
>>    public void testSaveToSession(){
>>        assertTrue(true);
>>    }
>>}
>>
>>In the console output I can see that all test are executed and pass.
>>
>>Thaks again
>>
>>Kelly.
>>
>>Vincent Massol wrote:
>>
>>    
>>
>>>Hi Kelly,
>>>
>>>I guess that would be more a Cactus question. Let me try to answer as
>>>      
>>>
>>I've
>>    
>>
>>>already done this in Cactus land.
>>>
>>>The easiest is to do the following I think:
>>>
>>>1/ First run clover on your projects that need clovering (for ex: maven
>>>clover:on war). Ensure that you've set the clover database property so
>>>      
>>>
>>that
>>    
>>
>>>it points to a single location for all the project you're clovering.
>>>
>>>2/ In the project where you run the Cactus tests, ensure to include the
>>>clover dependency and tag it as cactus.bundle so that it finds its way in
>>>the cactified war.
>>>
>>>   <dependency>
>>>     <groupId>clover</groupId>
>>>     <artifactId>clover-ant</artifactId>
>>>     <version>1.3_01</version>
>>>     <properties>
>>>       <cactus.bundle>true</cactus.bundle>
>>>     </properties>
>>>   </dependency>
>>>
>>>Of course you also need to define the clover database property so that it
>>>points to the same clover database.
>>>
>>>3/ Execute the cactus tests (maven cactus)
>>>
>>>4/ Execute the clover report.
>>>
>>>-Vincent
>>>
>>>
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
>>>>Sent: jeudi 2 septembre 2004 14:47
>>>>To: Maven Users List
>>>>Subject: clover-plugin
>>>>
>>>>Can someone give me an example on how to generate a clover report for
>>>>cactus tests?
>>>>
>>>>Thanks
>>>>
>>>>Kelly.
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>        
>>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>  
>


RE: clover-plugin

Posted by Vincent Massol <vm...@pivolis.com>.

> -----Original Message-----
> From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> Sent: jeudi 2 septembre 2004 19:08
> To: Cactus Users List
> Subject: Re: clover-plugin
> 
> Hello Vincent,
> 
> thanks for trying to help me again. I followed what you said but still
> my servlet tests(built with cactus) are not being show as covered on the
> report. Here is what I did:
> 
> 1. Put clover database property on project.properties like this
>     maven.clover.database.dir=target/clover/database

Actually in your case it's not required as you've got a single maven
project. It is only required for multiproject builds.

> 
> 2. Put the clover dependency on the project:
>     <dependency>
>               <groupId>clover</groupId>
>                   <artifactId>clover-ant</artifactId>
>                   <version>1.3_01</version>
>                   <properties>
>                     <cactus.bundle>true</cactus.bundle>
> 
> <maven.clover.database.dir>target/clover/database</maven.clover.database.d
> ir>

Errr? What's this? :-)

>                   </properties>
>         </dependency>
> 
> 3. maven clover:on war

Does your code get clovered? (you can show us the console output)

> 
> 4. maven cactus
> 
> 5. maven clover:report
> 

[snip]

I've just tried it on the cactus sample
(http://cvs.apache.org/viewcvs.cgi/jakarta-cactus/integration/maven/samples/
servlet/) by typing:

maven clover:on cactus

and then 

maven clover:report

and it worked fine... (showing 74% test coverage)

Maybe you're using old versions of the Maven Clover plugin or the Cactus
plugin for Maven?

Thanks
-Vincent

> All the commands were successful, but my report only shows as the
> classes that are not servlets are covered. Bellow is my servlet and its
> test class.
> 
> import javax.servlet.http.HttpServlet;
> import javax.servlet.http.HttpServletRequest;
> 
> public class SampleServlet extends HttpServlet
> {
>     public void saveToSession(HttpServletRequest request)
>     {
>         String testparam = request.getParameter("testparam");
>         request.getSession().setAttribute("testAttribute", testparam);
>     }
> }
> 
> import junit.framework.Test;
> import junit.framework.TestSuite;
> 
> import org.apache.cactus.ServletTestCase;
> import org.apache.cactus.WebRequest;
> 
> public class TestSampleServlet extends ServletTestCase
> {
>     public TestSampleServlet(String theName)
>     {
>         super(theName);
>     }
> 
>     public static Test suite()
>     {
>         return new TestSuite(TestSampleServlet.class);
>     }
> 
>     public void beginSaveToSessionOK(WebRequest webRequest)
>     {
>         webRequest.addParameter("testparam", "it works!");
>     }
> 
>     public void testSaveToSessionOK()
>     {
>         SampleServlet servlet = new SampleServlet();
>         servlet.saveToSession(request);
>         assertEquals("it works!", session.getAttribute("testAttribute"));
>     }
> 
>     public void testSaveToSession(){
>         assertTrue(true);
>     }
> }
> 
> In the console output I can see that all test are executed and pass.
> 
> Thaks again
> 
> Kelly.
> 
> Vincent Massol wrote:
> 
> >Hi Kelly,
> >
> >I guess that would be more a Cactus question. Let me try to answer as
> I've
> >already done this in Cactus land.
> >
> >The easiest is to do the following I think:
> >
> >1/ First run clover on your projects that need clovering (for ex: maven
> >clover:on war). Ensure that you've set the clover database property so
> that
> >it points to a single location for all the project you're clovering.
> >
> >2/ In the project where you run the Cactus tests, ensure to include the
> >clover dependency and tag it as cactus.bundle so that it finds its way in
> >the cactified war.
> >
> >    <dependency>
> >      <groupId>clover</groupId>
> >      <artifactId>clover-ant</artifactId>
> >      <version>1.3_01</version>
> >      <properties>
> >        <cactus.bundle>true</cactus.bundle>
> >      </properties>
> >    </dependency>
> >
> >Of course you also need to define the clover database property so that it
> >points to the same clover database.
> >
> >3/ Execute the cactus tests (maven cactus)
> >
> >4/ Execute the clover report.
> >
> >-Vincent
> >
> >
> >
> >>-----Original Message-----
> >>From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> >>Sent: jeudi 2 septembre 2004 14:47
> >>To: Maven Users List
> >>Subject: clover-plugin
> >>
> >>Can someone give me an example on how to generate a clover report for
> >>cactus tests?
> >>
> >>Thanks
> >>
> >>Kelly.
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Re: clover-plugin

Posted by "Kelly C. Goedert" <ke...@nexxera.com>.
Hello Vincent,

thanks for trying to help me again. I followed what you said but still 
my servlet tests(built with cactus) are not being show as covered on the 
report. Here is what I did:

1. Put clover database property on project.properties like this
    maven.clover.database.dir=target/clover/database

2. Put the clover dependency on the project:
    <dependency>
              <groupId>clover</groupId>
                  <artifactId>clover-ant</artifactId>
                  <version>1.3_01</version>
                  <properties>
                    <cactus.bundle>true</cactus.bundle>
                    
<maven.clover.database.dir>target/clover/database</maven.clover.database.dir>
                  </properties>
        </dependency>

3. maven clover:on war

4. maven cactus

5. maven clover:report

All the commands were successful, but my report only shows as the 
classes that are not servlets are covered. Bellow is my servlet and its 
test class.

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;

public class SampleServlet extends HttpServlet
{
    public void saveToSession(HttpServletRequest request)
    {
        String testparam = request.getParameter("testparam");
        request.getSession().setAttribute("testAttribute", testparam);
    }
}

import junit.framework.Test;
import junit.framework.TestSuite;

import org.apache.cactus.ServletTestCase;
import org.apache.cactus.WebRequest;

public class TestSampleServlet extends ServletTestCase
{
    public TestSampleServlet(String theName)
    {
        super(theName);
    }

    public static Test suite()
    {
        return new TestSuite(TestSampleServlet.class);
    }

    public void beginSaveToSessionOK(WebRequest webRequest)
    {
        webRequest.addParameter("testparam", "it works!");
    }

    public void testSaveToSessionOK()
    {
        SampleServlet servlet = new SampleServlet();
        servlet.saveToSession(request);
        assertEquals("it works!", session.getAttribute("testAttribute"));
    }
   
    public void testSaveToSession(){
        assertTrue(true);
    }
}

In the console output I can see that all test are executed and pass.

Thaks again

Kelly.

Vincent Massol wrote:

>Hi Kelly,
>
>I guess that would be more a Cactus question. Let me try to answer as I've
>already done this in Cactus land.
>
>The easiest is to do the following I think:
>
>1/ First run clover on your projects that need clovering (for ex: maven
>clover:on war). Ensure that you've set the clover database property so that
>it points to a single location for all the project you're clovering.
>
>2/ In the project where you run the Cactus tests, ensure to include the
>clover dependency and tag it as cactus.bundle so that it finds its way in
>the cactified war.
>
>    <dependency>
>      <groupId>clover</groupId>
>      <artifactId>clover-ant</artifactId>
>      <version>1.3_01</version>
>      <properties>
>        <cactus.bundle>true</cactus.bundle>
>      </properties>
>    </dependency>
>
>Of course you also need to define the clover database property so that it
>points to the same clover database.
>
>3/ Execute the cactus tests (maven cactus)
>
>4/ Execute the clover report.
>
>-Vincent
>
>  
>
>>-----Original Message-----
>>From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
>>Sent: jeudi 2 septembre 2004 14:47
>>To: Maven Users List
>>Subject: clover-plugin
>>
>>Can someone give me an example on how to generate a clover report for
>>cactus tests?
>>
>>Thanks
>>
>>Kelly.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>  
>