We are using private git repositories in Azure DevOps and I have a requirement to create code coverage report across git repositories. Our build CI/CD pipelines are using both TeamCity & Azure DevOps. I have looked at options and there is no straightforward solution to this problem. I am thinking about the following options:
- using service like coveralls.io, there is an option to add private repositories; the drawback it is subscription based service
- using TeamCity SonarQube plugin; It is not ideal and limited to the plugin features; I haven't tried it yet.
- using custom script to query and aggregate existing code coverage metrics of last successful build in TeamCity/Azure DevOps across projects and group them by repository; Both Azure DevOps & TeamCity offer REST APIs that can be used to get the data.
I still need a solution for Azure DevOps builds, however I have to admit I have not researched this properly yet.
Has anyone done cross repository code coverage reporting and what approach/tools might be best?