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

Answered

I can get the "Code coverage summary" via  https://...app/rest/builds/<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...

2 comments

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?

1

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!

0

Please sign in to leave a comment.