You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Cody Zhang <Co...@infowarelab.com> on 2008/03/17 03:50:40 UTC

答复: cobertura integration-test

Paul,Thank your reply!
I expect to get report when prject.war in jetty runtime.So I must generate war then put it to jetty。

-----邮件原件-----
发件人: paulus.benedictus@gmail.com [mailto:paulus.benedictus@gmail.com] 代表 Paul Benedict
发送时间: 2008年3月17日 10:42
收件人: Maven Users List
主题: Re: cobertura integration-test

It is a well known limitation of Cobertura that it cannot perform reporting
on a *separate* integration testing phase.  You can search the web on this
part. All it can do report on classes ran in the testing phase.

Paul

2008/3/16 Cody Zhang <Co...@infowarelab.com>:

> Dear All,
>
>         I want to get cobertura report at integration-test.But the goal(
> cobertura:instrument) run tiwce!
>
> My pom:
>
>
>
>
>
> <plugin>
>
>                            <groupId>org.apache.maven.plugins</groupId>
>
>                            <artifactId>maven-site-plugin</artifactId>
>
>                            <version>2.0-beta-5</version>
>
>                            <configuration>
>
>                                     <outputEncoding>UTF-8</outputEncoding>
>
>                            </configuration>
>
>                            <executions>
>
>                                     <execution>
>
>                                               <id>generate-site</id>
>
>
> <phase>pre-integration-test</phase>
>
>                                               <goals>
>
>                                                        <goal>site</goal>
>
>                                               </goals>
>
>                                     </execution>
>
>                                     <execution>
>
>                                               <id>deploy-site</id>
>
>
> <phase>integration-test</phase>
>
>                                               <goals>
>
>                                                        <goal>deploy</goal>
>
>                                               </goals>
>
>                                     </execution>
>
>                            </executions>
>
>                   </plugin>
>
>
>
>
>
> <reporting>
>
>         <plugins>
>
>                   <plugin>
>
>                            <groupId>org.codehaus.mojo</groupId>
>
>                            <artifactId>cobertura-maven-plugin</artifactId>
>
>                   </plugin>
>
>         </plugins>
>
> </reporting>
>
>
>
>
>
>         <dependencies>
>
>         <dependency>
>
>                   <groupId>net.sourceforge.cobertura</groupId>
>
>                   <artifactId>cobertura</artifactId>
>
>                   <version>1.9</version>
>
>         </dependency>
>
> </dependencies>
>
>
>
> My commond:
>
>         Mvn integration-test
>
>
>
>
>
>

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