hudson - Jenkins jacoco插件

我注意到jenkins声呐的jacoco插件已发布,我的问题是如何在pom.xml中进行配置?我已经制作了jacoco.exec,但是如何使用jacoco插件制作.xml文件?我在github(Jacoco Plugin on GitHub)上找到它

我已经下载了zip并尝试将其编译为maven,但出现错误

The project org.jenkins-ci.plugins:jacoco:1.0.1-SNAPSHOT (D:\Projects\jenkinsci-jacoco-plugin\pom.xml) has 1 error
Non-resolvable parent POM for org.jenkins-ci.plugins:plugin:1.424.6: Could not transfer artifact org.jenkins-ci:jenkins:pom:1.21 from/to repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/): 
Error transferring file: Server returned HTTP response code: 503 for URL: http://repo.jenkins-ci.org/public/org/jenkins-ci/jenkins/1.21/jenkins-1.21.pom @ org.jenkins-ci.plugins:plugin:1.424.6, 
C:\Documents and Settings\ro1v0367\.m2\repository\org\jenkins-ci\plugins\plugin\1.424.6\plugin-1.424.6.pom, line 4, column 11 -> [Help 2]

jacoco插件的步骤是什么,我该怎么办?

最佳答案

那些想尝试使用jacoco插件的人现在拥有很好的测试覆盖范围,而且已经发布了几个月,并且不需要声纳就可以在Jenkins上工作。一些有用的链接对那些感兴趣的人:

  • http://java.dzone.com/articles/jacoco-jenkins-plugin
  • https://wiki.jenkins-ci.org/display/JENKINS/JaCoCo+Plugin
  • http://www.agile-engineering.net/2012/01/unit-test-code-coverage.html

  • 干杯,

    https://stackoverflow.com/questions/11134387/

    相关文章:

    network-programming - 将邮件卡在ZeroMQ中

    scala - 如何转换 Play ! 2.0 Scala文件转换为CSVReader格式?

    for-loop - 无法在for循环中的子句中执行exe

    scala - 斯卡拉调度以编程方式登录网站

    antlr - 记住 AST 中的 ANTLR 规则/节点

    linq-to-sql - Windows 8的Metro风格应用程序中是否可以使用LINQ-to-

    tridion - 如何在Tridion DWT模板中迭代这些嵌入的值

    .net - 清理代码并进行重构。额外的局部变量

    jquery-mobile - jQuery mobile和Facebook登录

    jquery-mobile - 是否可以在 jquery mobile 的搜索输入旁边有一个按钮?