danielpalme / ReportGenerator

ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into human readable reports in various formats.

Home Page:https://reportgenerator.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To combine multi coverage report

Duraimurugan-jp opened this issue · comments

I am planning to combine all repos code coverage to show overall coverage report. So I created release pipeline to download all repos build artifact to fetch the code coverage that was already generated by reportGenerator for each individual repo. I have downloaded and can able to see each files with respective repos. Is there way to use already generated *.xml report from each repo to reportGenerator pipeline?

It's possible, but depending on you code base, it may be difficult.
You can generate coverage XML files in different pipelines (e.g. Cobertura format).
Each pipeline can generate a coverage report based on that file.

If you create a separate pipeline which downloads the artifacts (especially the Cobertura files), you are able to generate a combined report.
In order to get a complete report, the source code of all your pipelines must be available at the same location(s) as in the previous pipelines. This may be difficult, if you have separate code bases in each pipeline.