Converts OpenCover format to NCover format.
Takes the OpenCover input either as an XDocument from the object pipeline or from a file.
Writes the classic NCover report to the pipeline as an XDocument, and, optionally, to a file.
$xml = ConvertTo-NCover -InputFile "./Tests/HandRolledMonoCoverage.xml" -OutputFile "./_Packaging/HandRolledMonoNCover.xml"
public class ConvertToNCoverCommand : PSCmdlet
| name | description |
|---|---|
| ConvertToNCoverCommand() | The default constructor. |
| 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 |