Converts OpenCover reports to Cobertura reports.
Also available as NuGet package: https://www.nuget.org/packages/OpenCoverToCoberturaConverter
Author: Daniel Palme
Blog: www.palmmedia.de
Twitter: @danielpalme
OpenCoverToCoberturaConverter is a commandline tool which works with full .NET Framework and .NET Core.
It requires the following parameters:
Parameters:
["]-input:<OpenCover Report>["]
["]-output:<Cobertura Report>["]
["]-sources:<Solution Base Directory>["]
["]-includeGettersSetters:<true|false>["]
Default values:
-includeGettersSetters:false
Example:
"-input:OpenCover.xml" "-output:Cobertura.xml"
.NET Framework
OpenCoverToCoberturaConverter.exe "-input:OpenCover.xml" "-output:Cobertura.xml"
.NET Core
dotnet OpenCoverToCoberturaConverter.dll "-input:OpenCover.xml" "-output:Cobertura.xml"
An alternative to OpenCoverToCoberturaConverter is ReportGenerator. ReportGenerator has the following advantages:
- Merging of several coverage files
- Supports several input and output formats