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?
DotCover Cobertura or OpenCover XML
Asked Answered
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.
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.