如何将 Cobertura 集成到 Teamcity 6.5 构建中并获取代码覆盖率历史记录?
我想将 Cobertura 集成到我的 Teamcity 构建中。我使用此链接作为起点:
http://jroller.com/ulc/entry/teamcity_2_custom_report_integration< /a>
但据我所知,这只会给我一个当前覆盖范围的快照。对于在 Teamcity 中获取代码覆盖率的历史图表/记录有什么想法吗?
有没有比上面链接描述的更好的方法来与 Cobertura 集成?
I would like to integrate Cobertura into my Teamcity build. I'm using this link as a starting point:
http://jroller.com/ulc/entry/teamcity_2_custom_report_integration
But as far as I can tell that will only give me a current snapshot of the coverage. Any ideas for getting historical charts/records for code coverage in Teamcity?
Is there a better method than the above link describes for integrating with Cobertura?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,TeamCity 没有与 Cobertura 直接集成。
为了获取 TeamCity 统计图表和 7.0 引入的使构建失败的能力,构建脚本将需要报告相应的覆盖率相关 统计值 通过 服务消息。
顺便说一句,您可能会考虑将 IntelliJ IDEA 代码覆盖率 与 TeamCity 一起使用,而不是有点停滞科贝尔图拉。
There is no direct integration with Cobertura for TeamCity AFAIK.
For getting TeamCity statistics charts and 7.0-to-be-introduced ability to fail a build on metric change, build script will need to report corresponding coverage-related statistics values via service messages.
BTW, you might consider using IntelliJ IDEA Code Coverage with TeamCity instead of a bit stagnated Cobertura.
接受 Yaegor 的答案,因为它最直接地回答了我的问题——将 Cobertura 与 TeamCity 集成。但在我们的情况下,更好的整体解决方案是将 teamcity 与 Sonar 集成服务器。 Sonar 提供代码覆盖率(使用 Cobertura 或许多其他覆盖率工具)、静态分析和许多其他指标都是开箱即用的,只需很少的站立工作。
Going to accept Yaegor's answer as it most directly answers my question -- integrating Cobertura with TeamCity. But a better overall solution, in our situation, was just to integrate teamcity with a Sonar server. Sonar provides code coverage (with Cobertura or many other coverage tools), static analysis, and many other metrics out of the box with very little standup effort.