Hi,

#1 is by design. The first time is a normal run, then the classes are instrumented for/by Cobertura and it is executed again. If the first one succeeds but the second one fails, then it is an issue with Cobertura. If we would only run the tests with instrumented classes, you'll probably look at the wrong spot for the cause.

thanks,
Robert


Op Wed, 28 May 2014 22:46:49 +0200 schreef Ravindra Kondiparthi <ravi.4in...@gmail.com>:

HI,

I am having couple of issues with coberturan maven plugin.

Issues#1 Unit test ran Twice. First time is regular run of unit test and
looks like cobertura is running the unit tests second time

Issue #2

Unit tests Success in the First Run.
For the second run I am getting class not found exceptions in the unit
tests for the classes in the dependency jar.

My Plugin configuration:

 <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.6</version>
                <configuration>

                    <formats>
                        <format>xml</format>
                        <format>html</format>
                    </formats>

                     <instrumentation>
                    <!-- exclude generated classes from code coverage -->
                     </excludes>

                    </instrumentation>

                </configuration>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>cobertura</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
 <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
 <version>2.12.4</version>
<configuration>
<skipTests>false</skipTests>
 </configuration>
    </plugin>

Any help is appreciated on these issues.

Thanks
Ravi

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to