ReportGenerator - New release with enhanced HTML report and Cobertura support

 

ReportGenerator 2.5 has just been released. This latest version has some enhancements in the HTML report and and some other improvements.

Summary report enhancements

The design of the reports changed a bit. The width of the summary table was enlarged to better support long class names.
When navigating away from the summary to a class report, the previous state (filters, collapse state, etc.) will be restored on back navigation.
The branch coverage columns are now only added to the report, if the corresponding coverage tool supports branch coverage.

Summary

Class report enhancements

The class report now has a sidebar on the right. It shows the test methods, when you use OpenCovers coverbytest-feature. It also contains a list of all methods and properties of a class to quickly navigate to the corresponding line in the code.
Partially covered lines are now highlighted in orange.
The next OpenCover release will contain two new metrics. ReportGenerator already support them: Crap Score, NPath complexity.

Class report

New features

Cobertura coverage files are now supported. That allows usage of ReportGenerator also in Java or NodeJS projects.
MHTML is now supported as a new output format. It contains the full HTML report(s) in a single file.

Feedback

Feedback is highly appreciated. Let me know if you like the new enhancements/features?

Download

The latest release can be found on Nuget and on GitHub.

Feedly Feedly Tweet


Related posts


Comments


Daniel

Daniel

12/15/2020

@Frank: Can you share some details? https://github.com/danielpalme/ReportGenerator/issues/new?assignees=&labels=&template=bug_report.md&title=


Frank Bödecker

Frank Bödecker

12/15/2020

what can be the reason, that method names are all duplicate in cobertura coverage report in azure pipeline


Daniel

Daniel

7/3/2020

@Anish: The following YAML file should to the job: - script: dotnet tool install --tool-path tools dotnet-reportgenerator-globaltool --version 4.6.1 displayName: 'Install ReportGenerator tool' continueOnError: true - script: ./tools/reportgenerator "-reports:$(Agent.TempDirectory)/**/*.cobertura.xml" "-targetdir:$(Build.SourcesDirectory)/coverlet/reports" "-reporttypes:Cobertura;HtmlInline" displayName: Generate code coverage report continueOnError: true You can also use the Azure DevOps extension: https://marketplace.visualstudio.com/items?itemName=Palmmedia.reportgenerator


Anish

Anish

7/2/2020

Hi Palmmedia, Thank you so much for a wonderful tool like reportgenerator. I am facing an issue while generating a report with reportgenerator 'reportgenerator' is not recognized as an internal or external command, operable program or batch file. ##[error]Cmd.exe exited with code '1'. Attaching my YAML - script: dotnet tool install --global dotnet-reportgenerator-globaltool --version 4.6.1 displayName: 'Install ReportGenerator tool' continueOnError: true - script: reportgenerator "-reports:$(Agent.TempDirectory)/**/*.cobertura.xml" "-targetdir:$(Build.SourcesDirectory)/coverlet/reports" -reporttypes:Cobertura;htmlInline displayName: Generate code coverage report continueOnError: true Any help please?