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.64k stars 283 forks source link

Does ReportGenerator merge the duplicate files or dlls ? #711

Open vinayakmsft opened 1 day ago

vinayakmsft commented 1 day ago

Hi @danielpalme

I had 1 question related the logic behind ReportGenerator. Does the report generator merge the duplicate files or dlls while generating the code coverage report? If yes, can you please share me the code link to where it merges the files?

For example, please see this screenshot , there are duplicate dlls.

image

danielpalme commented 5 hours ago

@vinayakmsft If you pass several coverage files to ReportGenerator the results of all files are merged into one report. Merging happens on several levels:

Based on your screenshot, I cannot tell whether you are passing a single or several coverage files to ReportGenerator. But it does not really matter: The class names are the same (e.g. SourceViewLibrary.MathHelpers), but they exist in different assemblies/Dlls: SourceViewLibrary.dll and SourceViewLibrary.Tests.dll, so nothing is merged here.