Houdy,

I am newby to Maven 2.

I have Introduced the Cobertura plugin in the reporting section of the
pom.xml file of my main project as follows:

<reporting>
...
                <plugins>

                        <!--
                               - JUNIT test report activation
                        -->
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                
<artifactId>maven-surefire-report-plugin</artifactId>
                        </plugin>
                        <!--
                               - Cobertura Code coverage module
                       -->
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>cobertura-maven-plugin</artifactId>
                                <configuration>
                                        <formats>
                                                <format>html</format>
                                        </formats>
                                   <instrumentation/>
                                   <check>
                                                   <!-- should not stop in case 
of Cobertura reporting error -->
                                                   
<haltOnFailure>false</haltOnFailure>
                                   </check>
                                </configuration>
                        </plugin>
            </plugins>
...
</reporting>

It works fine. As I am also using the surefire reporting, it seems the test
phase is run twice, one by
surefire and once by cobertura.

Is there any way to instrument code before surefire execution for the two
plugin to share the same test sequence ?

Thanx for your response ?
-- 
View this message in context: 
http://www.nabble.com/Cobertura-plugin-tp14731193s177p14731193.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to