[
http://jira.codehaus.org/browse/MCOBERTURA-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann moved MNG-4995 to MCOBERTURA-135:
---------------------------------------------------
Complexity: (was: Intermediate)
Component/s: (was: Sites & Reporting)
Affects Version/s: (was: 2.0.9)
2.4
Key: MCOBERTURA-135 (was: MNG-4995)
Project: Maven 2.x Cobertura Plugin (was: Maven 2 & 3)
> 0% code coverage have been reported where as some unit test had been done.
> --------------------------------------------------------------------------
>
> Key: MCOBERTURA-135
> URL: http://jira.codehaus.org/browse/MCOBERTURA-135
> Project: Maven 2.x Cobertura Plugin
> Issue Type: Bug
> Affects Versions: 2.4
> Environment: maven 2.2.1, maven-surefire-plugin, 2.5 and
> cobertura-maven-plugin 2.4
> Reporter: Atanu Panda
>
> I have project module where I have done some junit test and found out test
> result. But when I see the code coverage I found that is 0% code coverage. I
> have searched the jira tickets, but I was unsuccessful
> Find below my test result snippet
> Successful Testing.....
> tearDown.....
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.327 sec
> Results :
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
> I have in my pom.xml as
> <build>
> .
> .
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.5</version>
> <configuration>
> <includes>
>
> <include>**/*Test*.class</include>
> </includes>
> <systemProperties>
> <property>
>
> <name>net.sourceforge.cobertura.datafile</name>
>
> <value>${project.build.directory}/cobertur/cobertura.ser</value>
> </property>
> </systemProperties>
> </configuration>
> </plugin>
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
>
> <artifactId>cobertura-maven-plugin</artifactId>
> <version>2.1</version>
> <configuration>
> <includes>
>
> <include>**/*Test*.class</include>
> </includes>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>clean</goal>
> <goal>instrument</goal>
> <goal>cobertura</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> .
> .
> </build>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>cobertura-maven-plugin</artifactId>
> <version>2.1</version>
> <configuration>
> <includes>
>
> <include>**/*Test*.class</include>
> </includes>
> <formats>
> <format>html</format>
> <format>xml</format>
> </formats>
> </configuration>
> </plugin>
> </plugins>
> </reporting>
> Please help me out. Please let me know if you need any information from my
> side.
> Thanks
> Atanu Panda.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email