Creates a JSON format report from other report formats.
Takes either OpenCover or classic NCover format input as an XDocument
, as an argument or from the object pipeline. Writes the JSON report to a string.
ConvertTo-CoverageJson -InputFile "./Tests/HandRolledMonoCoverage.xml"
public class ConvertToCoverageJsonCommand : PSCmdlet
name | description |
---|---|
ConvertToCoverageJsonCommand() | The default constructor. |
InputFile { get; set; } | Input as file path |
XDocument { get; set; } | Input as XDocument value |
override ProcessRecord() | Create transformed document |