dangl - Dangl.Nuke.CoberturaConverter 1.0.1

NUKE tool to convert coverage reports to Cobertura

PM> Install-Package Dangl.Nuke.CoberturaConverter -Version 1.0.1 -Source https://www.myget.org/F/dangl/api/v3/index.json

Copy to clipboard

> nuget.exe install Dangl.Nuke.CoberturaConverter -Version 1.0.1 -Source https://www.myget.org/F/dangl/api/v3/index.json

Copy to clipboard

> dotnet add package Dangl.Nuke.CoberturaConverter --version 1.0.1 --source https://www.myget.org/F/dangl/api/v3/index.json

Copy to clipboard
<PackageReference Include="Dangl.Nuke.CoberturaConverter" Version="1.0.1" />
Copy to clipboard
source https://www.myget.org/F/dangl/api/v3/index.json

nuget Dangl.Nuke.CoberturaConverter  ~> 1.0.1
Copy to clipboard

> choco install Dangl.Nuke.CoberturaConverter --version 1.0.1 --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 "Dangl.Nuke.CoberturaConverter" -RequiredVersion "1.0.1" -Repository "dangl" 
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.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
    • CoberturaConverter.Core (>= 1.0.1)
    • JetBrains.Annotations (>= 11.1.0)
    • Nuke.Common (>= 0.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

213 total downloads
4 downloads for version 1.0.1
Download (5.86 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
2.0.0 10.44 KB Thu, 12 Nov 2020 23:24:15 GMT 6
2.0.0-beta0008 10.41 KB Thu, 12 Nov 2020 23:15:18 GMT 5
2.0.0-beta0007 10.49 KB Thu, 12 Nov 2020 23:13:12 GMT 4
1.3.1 6.17 KB Fri, 13 Mar 2020 16:05:07 GMT 5
1.3.1-beta0003 6.2 KB Fri, 13 Mar 2020 16:03:00 GMT 5
1.3.1-beta0002 6.13 KB Fri, 13 Mar 2020 16:00:45 GMT 5
1.3.0 6.08 KB Fri, 03 May 2019 15:41:09 GMT 4
1.3.0-beta0006 6.11 KB Fri, 03 May 2019 15:36:13 GMT 5
1.2.1-beta0001 6.13 KB Thu, 03 Jan 2019 15:07:14 GMT 5
1.2.0 6.1 KB Sun, 05 Aug 2018 13:20:48 GMT 5
1.1.5-beta0003 6.14 KB Sun, 05 Aug 2018 13:19:04 GMT 5
1.1.5-beta0002 6.14 KB Sun, 05 Aug 2018 13:17:55 GMT 5
1.1.5-beta0001 6.14 KB Sun, 05 Aug 2018 13:15:26 GMT 4
1.1.4 6.1 KB Wed, 20 Jun 2018 10:06:09 GMT 5
1.1.4-beta0014 6.12 KB Wed, 20 Jun 2018 10:02:53 GMT 5
1.1.4-beta0013 6.07 KB Tue, 19 Jun 2018 19:37:55 GMT 5
1.1.4-beta0012 6.07 KB Tue, 19 Jun 2018 18:35:31 GMT 5
1.1.4-beta0011 6.07 KB Tue, 19 Jun 2018 13:32:45 GMT 4
1.1.4-beta0010 6.06 KB Tue, 19 Jun 2018 13:30:03 GMT 4
1.1.3 6.01 KB Tue, 29 May 2018 17:42:21 GMT 4
1.1.3-beta0001 6.03 KB Tue, 29 May 2018 17:40:15 GMT 5
1.1.2 5.98 KB Mon, 28 May 2018 09:41:41 GMT 6
1.1.2-beta0003 6.01 KB Mon, 28 May 2018 09:31:34 GMT 4
1.1.2-beta0002 5.99 KB Mon, 28 May 2018 08:40:17 GMT 5
1.1.2-beta0001 5.99 KB Mon, 28 May 2018 08:39:13 GMT 5
1.1.1 5.95 KB Mon, 28 May 2018 08:21:35 GMT 4
1.1.1-beta0006 5.99 KB Mon, 28 May 2018 08:19:35 GMT 5
1.1.1-beta0005 5.99 KB Mon, 28 May 2018 08:14:33 GMT 4
1.1.1-beta0002 5.93 KB Mon, 28 May 2018 07:23:39 GMT 4
1.1.1-beta0001 5.93 KB Sun, 06 May 2018 15:13:16 GMT 5
1.1.0 5.89 KB Thu, 03 May 2018 12:40:57 GMT 6
1.0.2-beta0022 5.93 KB Thu, 03 May 2018 12:39:21 GMT 5
1.0.2-beta0019 5.9 KB Mon, 19 Mar 2018 21:24:52 GMT 4
1.0.2-beta0014 5.9 KB Mon, 19 Mar 2018 21:11:47 GMT 4
1.0.2-beta0013 5.9 KB Mon, 19 Mar 2018 20:25:28 GMT 5
1.0.2-beta0012 5.9 KB Thu, 15 Mar 2018 16:28:42 GMT 5
1.0.2-beta0003 5.9 KB Tue, 06 Mar 2018 17:30:27 GMT 5
1.0.2-beta0001 5.89 KB Sat, 03 Mar 2018 23:40:40 GMT 4
1.0.1 5.86 KB Sat, 03 Mar 2018 13:39:12 GMT 4
1.0.1-beta0004 5.88 KB Sat, 03 Mar 2018 09:56:17 GMT 5
1.0.1-beta0003 5.88 KB Sat, 03 Mar 2018 00:58:01 GMT 5
1.0.1-beta0002 5.85 KB Sat, 03 Mar 2018 00:55:26 GMT 6
1.0.1-beta0001 5.83 KB Fri, 02 Mar 2018 19:11:49 GMT 5
1.0.0 5.65 KB Fri, 02 Mar 2018 19:04:27 GMT 4
0.1.0-beta0033 5.71 KB Fri, 02 Mar 2018 19:01:15 GMT 4