My project uses Maven as the build tool. For how Maven integrates Jenkins, see:
Http://blog.csdn.net/yaominhua/article/details/40684355
This article only describes how to integrate cobertura in Jenkins:
1. first make sure that you have Jenkins installed with the plug-in of cobertura:
2. Configure Jenkins, modify the maven execution command, and add cobertura to execute the command cobertura: cobertura.
3. In add post build action, select the following publish cobertura coverage report:
4. A configuration item is displayed after the selection. Here, the path for cobertura to generate the XML report is in the sky. My path is **/target/site/cobertura/coverage. xml
5. re-build your project and you will be able to see the code coverage report on the project homepage:
Jenkins integrates cobertura, and the call displays the report of cobertura