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

Issue with -reporttypes field #654

Closed roberAlb closed 8 months ago

roberAlb commented 9 months ago

I'm executing reportgenerator command from Azure DevOps pipeline like this

reportgenerator -reports:$(Agent.WorkFolder)/_temp/**/coverage.cobertura.xml -targetdir:$(Build.SourcesDirectory)/CodeCoverage -reporttypes:'HtmlInline_AzurePipelines;Cobertura'

and I'm getting this error related to the report types while the report types used are in the list of supported ones

2024-02-26T16:06:28: Unknown report type ''HtmlInline_AzurePipelines'. 2024-02-26T16:06:28: Unknown report type 'Cobertura''.

Version of Report Generator: 5.2.2

.NET version: 8.0.200

danielpalme commented 9 months ago

Probably a problem with the '.

Please try this command: reportgenerator -reports:$(Agent.WorkFolder)/_temp/**/coverage.cobertura.xml -targetdir:$(Build.SourcesDirectory)/CodeCoverage -reporttypes:HtmlInline_AzurePipelines;Cobertura