2

I have generated xml file using OpenCover. And used below command to generate html report,

"C:\ReportGenerator_2.1.4.0\bin\ReportGenerator.exe" -reports:"Reports\Test.xml" -targetdir:"Reports"

It generated multiple html reports under 'Reports' folder. I wanted to generate one 'Test.html' report. I tried many options but did not work. Could you please tell me which option I should use to generate one 'Test.html' report.

magg
  • 119
  • 1
  • 3
  • 11
  • I don't think that option is available - why do you need one report? You could write your own see [Custom reports](https://github.com/danielpalme/ReportGenerator/wiki/Custom-reports) – Shaun Wilde May 12 '15 at 23:22
  • Method coverage with reportGenerator needs payment https://gist.github.com/jrichardsz/65d31c6f41bcb73061c9d314d62abafb#file-reportgenerator-needs-payment-md – JRichardsz May 12 '23 at 21:51

1 Answers1

3

You can use the report type HtmlSummary. This creates a single file report:

"C:\ReportGenerator_2.1.4.0\bin\ReportGenerator.exe" -reports:"Reports\Test.xml" -targetdir:"Reports" -reporttypes:HtmlSummary

If you want to customize the report, you can implement a plugin which renders the report. See https://github.com/danielpalme/ReportGenerator/wiki/Custom-reports.

Daniel
  • 920
  • 7
  • 19