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?

有帮助吗?

解决方案

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.

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top