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

[Question] How report generator works with multi-target framework #368

Closed eddynaka closed 4 years ago

eddynaka commented 4 years ago

Hi,

imagine that I have a project that targets 3 different frameworks: net452, net461, netstandard2.0.

Some tests are conditional:

When I use dotnet test to generate the output, it generates 3 files, one for each framework. Then, i use reportgeenerator tool to merge.

What will happen with the data? Is it going to merge de results as well?

danielpalme commented 4 years ago

Yes.

Assemblies with same name are merged, Classes within an assembly with the same name are merged. Coverage of each line is summed up.

You can simply try by generating the report for one coverage file. The do the same for two/three files and you will see the difference in the numbers.