Reputation: 7092
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?
Upvotes: 2
Views: 2737
Reputation: 7092
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.
Upvotes: 3
Reputation: 1832
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.
Upvotes: 3