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

Files with 0% coverage are omitted from the coverage report #621

Closed Rob-McKay closed 1 year ago

Rob-McKay commented 1 year ago

Using ReportGenerator 5.1.23.0

When reporting from cobertura coverage, files with 0% coverage are omitted from the coverage report.

2023-09-06T10:57:16: Arguments
2023-09-06T10:57:16:  -reports:coverage/coverage_*.xml;coverage/*.lcov
2023-09-06T10:57:16:  -targetdir:coveragereport
2023-09-06T10:57:16:  -reporttypes:Cobertura;HtmlInline_AzurePipelines_Dark
2023-09-06T10:57:16:  -sourcedirs:D:\_work\11\s
2023-09-06T10:57:17: Writing report file 'coveragereport\Cobertura.xml'
2023-09-06T10:57:17: Writing report file 'coveragereport\index.html'
2023-09-06T10:57:17: Report generation took 1.2 seconds
danielpalme commented 1 year ago

That should not be the case. Can you share are sample cobertura file? You can also send it privately via email (reportgenerator@palmmedia.de)

Rob-McKay commented 1 year ago

I have sent you a file which shows the issue privately via email.

danielpalme commented 1 year ago

Thanks. Will have a look as soon as possible.

danielpalme commented 1 year ago

Have you received my answer via email?

Rob-McKay commented 1 year ago

Have you received my answer via email?

No I haven't and I don't see it in my junk email folder.

danielpalme commented 1 year ago

Maybe it got blocked because I attached a HTML file.

This was my answer:

Your Cobertura file contains 13 classes. All of them are available in the report generated by ReportGenerator. Can you point me to the exact location where you are missing something?

image

danielpalme commented 1 year ago

Do you still have an issue? Am I missing something?

danielpalme commented 1 year ago

I'm closing this for now. Feel free to reopen if you still have an issue!