如何使用Hudson的Maven生成Cobertura代码覆盖率报告 [英] How to generate Cobertura Code Coverage Report using Maven from Hudson

查看:65
本文介绍了如何使用Hudson的Maven生成Cobertura代码覆盖率报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我需要使用maven build从Hudson创建Cobertura代码覆盖率报告.
在Hudson中,我添加了Cobertura Code Coverage插件.
我需要pom.xml的完整修改步骤.

In my project I need to create Cobertura Code Coverage report from Hudson using maven build.
In Hudson I have added the Cobertura Code Coverage plugin.
I need the complete modification steps of pom.xml.

推荐答案

您是否尝试将其添加到reporting部分的pom.xml中?

Did you try to add this to your pom.xml in the reporting section?

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>cobertura-maven-plugin</artifactId>
    <configuration>
       <formats>
           <format>html</format>
           <format>xml</format>
       </formats>
    </configuration>
</plugin>

可以在此处找到完整的配置步骤.

Complete configuration steps can be found here.

这篇关于如何使用Hudson的Maven生成Cobertura代码覆盖率报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆