javateamcitycoberturateamcity-6

How to integrate Cobertura into Teamcity 6.5 build and get code coverage history?


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?


Solution

  • 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.