DotCover Cobertura or OpenCover XML
Asked Answered
L

1

7

I have a dotcover coverage report generated using dotcover.exe. I want to integrate the report in Jenkins and show the coverage. How can I generate a cobertura or openclover xml from it?

Ligetti answered 30/3, 2020 at 15:44 Comment(0)
K
3

You can use ReportGenerator for that.

First, install reportgenerator as dotnet global tool:

dotnet tool install --global dotnet-reportgenerator-globaltool

Second, dotCover report should be in DetailedXML format, it has file paths that needed in Cobertura.

Then, run reportgenerator to convert to desired format, like:

reportgenerator -reports:./dotCover.Output.xml -targetdir:. -reporttypes:Cobertura

As a result, you'll have Cobertura.xml file.

Kalman answered 22/9, 2022 at 11:6 Comment(1)
reportgenerator requires the PRO licence to output to OpenCover. Are there any free tools to get an OpenCover version of the report from dotCover?Earthstar

© 2022 - 2024 — McMap. All rights reserved.