Integrating cobertura with Maven 3.0.3

Integrating cobertura with  Maven 3.0.3
Cobertura is a Java code coverage analysis tool. You can use it to determine what percentage of your source code is exercised by your unit tests.

Good tool to  evaluate   any outsourced projects,also for clients to ask for code coverage tool report before the project closure.

Add the below plugin configuration in ur pom.xml


mvn clean compile install

mvn cobertura:cobertura

You should get build success.
The generated report will be under  traget/site/cobertura/index.html

ref link:


Popular posts from this blog

Spring MVC- Redirect from one controller to another

Integrating Struts2 with Spring Security using Custom Login Form