2

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?

Dave Schweisguth
  • 36,475
  • 10
  • 98
  • 121
Ryan Walls
  • 6,962
  • 1
  • 39
  • 42
  • 1
    if it will not work with teamcity you can try [sonar](http://www.sonarsource.org/) this has a timeline feature. – oers Jan 06 '12 at 13:21

2 Answers2

3

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
  • 1,771
  • 9
  • 12
3

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.

Ryan Walls
  • 6,962
  • 1
  • 39
  • 42