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.
https://reportgenerator.io
Apache License 2.0
2.62k stars 283 forks source link

To combine multi coverage report #615

Closed Duraimurugan-jp closed 1 year ago

Duraimurugan-jp commented 1 year ago

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?

danielpalme commented 1 year ago

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.