http://maven.40175.n5.nabble.com/Cobertura-and-Surefire-td3338334.html

On 26 September 2011 15:46, Miguel Almeida <migueldealme...@gmail.com> wrote:
> I am using the cobertura plugin to create test coverage reports, and
> surefire-report for test reports. See [1] for my maven 3 configuration on
> the top-tier of a multi-module project.
> The goals I am running are:
>
> Surefire: surefire-report:report
> Cobertura: cobertura:cobertura
>
> Is it possible to run the both reports in the same run *withou*t *running
> the tests twice*? I have tried two approaches:
>
> 1) mvn both goals
> 2) Site: site:site
>
> However, because site:site ran for too long (more than 2 minutes, vs a 30
> second surefire-report), I inspected its output, and found out it was
> running each test twice (eg, I found two string matches of "Running
> org.iwrs.web.IndexActionTest").
>
> To reduce total goal time, can *tests run once and produce surefire and
> cobertura reports*?
>
> Thank you,
>
> Miguel Almeida
>
> [1]
> <plugins>
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-site-plugin</artifactId>
>                <version>3.0-beta-3</version>
>                <configuration>
>                    <reportPlugins>
>                        <plugin>
>                            <groupId>org.apache.maven.plugins</groupId>
>                            <artifactId>maven-javadoc-plugin</artifactId>
>                            <version>2.7</version>
>                        </plugin>
>                        <plugin>
>                            <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-surefire-report-plugin</artifactId>
>                            <version>2.6</version>
>                        </plugin>
>                        <plugin>
>                            <groupId>org.codehaus.mojo</groupId>
>                            <artifactId>cobertura-maven-plugin</artifactId>
>                            <configuration>
>                                <instrumentation>
>                                    <excludes>
>
> <exclude>com/work/**/*Fake*.class</exclude>
>                                    </excludes>
>                                </instrumentation>
>                            </configuration>
>                        </plugin>
>                    </reportPlugins>
>                </configuration>
>            </plugin>
>

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

Reply via email to