Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Converts OpenCover reports to Cobertura reports.

License

Notifications You must be signed in to change notification settings

danielpalme/OpenCoverToCoberturaConverter

Repository files navigation

OpenCoverToCoberturaConverter

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

Usage

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"

Alternative

An alternative to OpenCoverToCoberturaConverter is ReportGenerator. ReportGenerator has the following advantages:

  • Merging of several coverage files
  • Supports several input and output formats

Comparision