Is there a way to get the detailed code coverage numbers for a build via REST (or another API)?


I can get the "Code coverage summary" via<biuld number>/statistics, but I can't find the way to get the detailed code coverage results (as are in the Code Coverage tab or  "View full report").  Does DotCover have an API instead?  I'd rather not resort to screen scrapping...

Comment actions Permalink

Hi Tim,

Code coverage results are stored as hidden artifacts. You can download them from TeamCity UI: build > Artifacts > Show hidden or using REST API. Will it work for you?

Comment actions Permalink

Yes, that will work.  The CoverageReport.xml appears to have all the information I need, and I can acccess that via the REST API.

Thank you very much!


Please sign in to leave a comment.