altcover

ConvertFromCoverageJsonCommand class

Creates an OpenCover-style XML document from coverlet or AltCover JSON.

Takes either coverlet or AltCover JSON input as file path, or a string as an argument or from the object pipeline.

Writes the XML report to the object pipeline as an XDocument, and optionally to a file.

ConvertFrom-CoverageJson -InputFile "./Tests/Sample4.coverlet.json" -OutputFile "./_Packaging/Sample4.coverlet.json"
public class ConvertFromCoverageJsonCommand : PSCmdlet

Public Members

name description
ConvertFromCoverageJsonCommand() The default constructor.
InputFile { get; set; } Input as file path
Json { get; set; } Input as string value
OutputFile { get; set; } Output as file path
override ProcessRecord() Create transformed document

See Also