dangl - CoberturaConverter.Core 1.0.2-beta0022

Library to convert coverage reports to Cobertura

PM> Install-Package CoberturaConverter.Core -Version 1.0.2-beta0022 -Source https://www.myget.org/F/dangl/api/v3/index.json

Copy to clipboard

> nuget.exe install CoberturaConverter.Core -Version 1.0.2-beta0022 -Source https://www.myget.org/F/dangl/api/v3/index.json

Copy to clipboard

> dotnet add package CoberturaConverter.Core --version 1.0.2-beta0022 --source https://www.myget.org/F/dangl/api/v3/index.json

Copy to clipboard
<PackageReference Include="CoberturaConverter.Core" Version="1.0.2-beta0022" />
Copy to clipboard
source https://www.myget.org/F/dangl/api/v3/index.json

nuget CoberturaConverter.Core  ~> 1.0.2-beta0022
Copy to clipboard

> choco install CoberturaConverter.Core --version 1.0.2-beta0022 --source https://www.myget.org/F/dangl/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "dangl" -SourceLocation "https://www.myget.org/F/dangl/api/v2"
Install-Module -Name "CoberturaConverter.Core" -RequiredVersion "1.0.2-beta0022" -Repository "dangl" -AllowPreRelease
Copy to clipboard

CoberturaConverter

Build Status
Built with Nuke
NuGet MyGet

Changelog
Documentation

This package aims to provide conversion of code coverage reports to the Cobertura format. Currently, it supports OpenCover and dotCover source formats. It can be either directly used via the CoberturaConverter NuGet package, as Dangl.Nuke.CoberturaConverter for the NUKE Build system or as command line tool via CoberturaConverter.CommandLine.

This project is based on Daniel Palmes OpenCoverToCobertura Converter, which is licensed under the Apache License.

dotCover Report Types

Because the filename attribute is mandatory in the Cobertura format, dotCover reports should always be generated with the DetailedXml setting instead of the regular Xml to output filenames. Otherwise, all classes in the dotCover report that do not have a source file specified are ignored.

Referencing

If this is used in full .Net framework 4.6.1 and earlier, please add a reference to

<PackageReference Include="System.ValueTuple" Version="4.4.0" />

CI Builds

All builds are available on MyGet:

https://www.myget.org/F/dangl/api/v2
https://www.myget.org/F/dangl/api/v3/index.json

CLI Usage

You can use the converter from the command line, it is available in the CoberturaConverter.CommandLine NuGet package under /tools both for net461 and netcoreapp2.0.

CoberturaConverter.CommandLine.exe -i <InputFile> -o <OutputFile> -s <DotCover | OpenCover>
Parameter Description
-i Path to the input file
-o Path where to save the converted report to
-s Source report format, can be either DotCover or OpenCover
--help Display options

NUKE Example

The package is available as Dangl.Nuke.CoberturaConverter.

using static Nuke.CoberturaConverter.CoberturaConverterTasks;

await DotCoverToCobertura(s => s
    .SetInputFile(OutputDirectory / "coverage.xml")
    .SetOutputFile(OutputDirectory / "cobertura_coverage.xml"));

License

v1.1.0:

  • Update to NUKE 0.4.0

v1.0.1

  • Support nested types when converting from dotCover
  • Exclude types without lines when converting from dotCover to Cobertura

v1.0.0

  • Initial Release
  • .NETStandard 2.0
  • .NETStandard 2.0: 2.0.0.0

Owners

Georg Dangl

Authors

Georg Dangl

Project URL

https://github.com/GeorgDangl/CoberturaConverter

License

Unknown

Info

3548 total downloads
69 downloads for version 1.0.2-beta0022
Download (19.25 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
2.0.0 19.57 KB Thu, 12 Nov 2020 23:24:13 GMT 76
2.0.0-beta0008 19.6 KB Thu, 12 Nov 2020 23:15:18 GMT 73
2.0.0-beta0007 19.6 KB Thu, 12 Nov 2020 23:13:11 GMT 63
1.3.1 19.53 KB Fri, 13 Mar 2020 16:05:03 GMT 78
1.3.1-beta0003 19.55 KB Fri, 13 Mar 2020 16:02:59 GMT 60
1.3.1-beta0002 19.47 KB Fri, 13 Mar 2020 16:00:43 GMT 72
1.3.0 19.45 KB Fri, 03 May 2019 15:41:06 GMT 84
1.3.0-beta0006 19.47 KB Fri, 03 May 2019 15:36:12 GMT 69
1.2.1-beta0001 19.47 KB Thu, 03 Jan 2019 15:07:13 GMT 73
1.2.0 19.44 KB Sun, 05 Aug 2018 13:20:45 GMT 71
1.1.5-beta0003 19.48 KB Sun, 05 Aug 2018 13:19:03 GMT 91
1.1.5-beta0002 19.47 KB Sun, 05 Aug 2018 13:17:54 GMT 77
1.1.5-beta0001 19.47 KB Sun, 05 Aug 2018 13:15:25 GMT 73
1.1.4 19.44 KB Wed, 20 Jun 2018 10:06:06 GMT 71
1.1.4-beta0014 19.46 KB Wed, 20 Jun 2018 10:02:52 GMT 82
1.1.4-beta0013 19.4 KB Tue, 19 Jun 2018 19:37:54 GMT 93
1.1.4-beta0012 19.41 KB Tue, 19 Jun 2018 18:35:30 GMT 70
1.1.4-beta0011 19.41 KB Tue, 19 Jun 2018 13:32:44 GMT 68
1.1.4-beta0010 19.4 KB Tue, 19 Jun 2018 13:30:01 GMT 67
1.1.3 19.36 KB Tue, 29 May 2018 17:42:21 GMT 77
1.1.3-beta0001 19.37 KB Tue, 29 May 2018 17:40:14 GMT 86
1.1.2 19.33 KB Mon, 28 May 2018 09:41:40 GMT 68
1.1.2-beta0003 19.35 KB Mon, 28 May 2018 09:31:33 GMT 69
1.1.2-beta0002 19.33 KB Mon, 28 May 2018 08:40:16 GMT 82
1.1.2-beta0001 19.33 KB Mon, 28 May 2018 08:39:12 GMT 65
1.1.1 19.28 KB Mon, 28 May 2018 08:21:34 GMT 75
1.1.1-beta0006 19.31 KB Mon, 28 May 2018 08:19:33 GMT 81
1.1.1-beta0005 19.32 KB Mon, 28 May 2018 08:14:31 GMT 71
1.1.1-beta0002 19.25 KB Mon, 28 May 2018 07:23:38 GMT 84
1.1.1-beta0001 19.24 KB Sun, 06 May 2018 15:13:15 GMT 75
1.1.0 19.21 KB Thu, 03 May 2018 12:40:56 GMT 71
1.0.2-beta0022 19.25 KB Thu, 03 May 2018 12:39:19 GMT 69
1.0.2-beta0019 19.23 KB Mon, 19 Mar 2018 21:24:51 GMT 78
1.0.2-beta0014 19.23 KB Mon, 19 Mar 2018 21:11:46 GMT 71
1.0.2-beta0013 19.23 KB Mon, 19 Mar 2018 20:25:27 GMT 62
1.0.2-beta0012 19.23 KB Thu, 15 Mar 2018 16:28:41 GMT 61
1.0.2-beta0003 19.23 KB Tue, 06 Mar 2018 17:30:24 GMT 68
1.0.2-beta0001 19.22 KB Sat, 03 Mar 2018 23:40:38 GMT 68
1.0.1 19.2 KB Sat, 03 Mar 2018 13:39:11 GMT 77
1.0.1-beta0004 19.2 KB Sat, 03 Mar 2018 09:56:16 GMT 72
1.0.1-beta0003 19.05 KB Sat, 03 Mar 2018 00:57:59 GMT 74
1.0.1-beta0002 19.02 KB Sat, 03 Mar 2018 00:55:25 GMT 61
1.0.1-beta0001 18.84 KB Fri, 02 Mar 2018 19:11:48 GMT 70
1.0.0 18.69 KB Fri, 02 Mar 2018 19:04:26 GMT 60
0.1.0-beta0033 18.74 KB Fri, 02 Mar 2018 19:01:14 GMT 70
0.1.0-beta0024 18.52 KB Fri, 02 Mar 2018 13:07:46 GMT 71
0.1.0-beta0022 18.52 KB Fri, 02 Mar 2018 12:26:15 GMT 64
0.1.0-beta0021 18.52 KB Fri, 02 Mar 2018 12:24:37 GMT 71
0.1.0-beta0016 18.52 KB Thu, 01 Mar 2018 23:23:27 GMT 66