altcover

ConvertFromNCoverCommand class

Converts classic NCover format and returns OpenCover format.

The classic NCover format input may be either may be as an XDocument from the object pipeline or from a file.

Writes the OpenCover format report to the pipeline as an XDocument, and, optionally, to a file. The report will contain data for the assemblies listed as the -Assembly argument and that are in the NCover input.

    $xml = ConvertFrom-NCover -InputFile "./_Reports/ReleaseXUnitFSharpTypesDotNetRunner.xml" -Assembly $Assemblies -OutputFile "./_Packaging/AltCoverFSharpTypes.xml"
public class ConvertFromNCoverCommand : PSCmdlet

Public Members

name description
ConvertFromNCoverCommand() The default constructor.
Assembly { get; set; } Assemblies to use for generating the output
InputFile { get; set; } Input as file path
OutputFile { get; set; } Output as file path
XDocument { get; set; } Input as XDocument value
override ProcessRecord() Create transformed document

See Also