Appearance
ReadXml Method
Definition
- Namespace:
JASE.TestAnalysis - Assembly:
JASE.TestAnalysis.dll
OpenCoverReport ReadXml(string xml, CoverageOptions options = null)
csharp
OpenCoverReport ReadXml(string xml, CoverageOptions options = null)Reads an OpenCover coverage report from a string containing XML content.
Parameters
| Name | Description |
|---|---|
options | Optional coverage reader options. If , default options are created. |
xml | A string containing OpenCover-formatted XML content. |
Returns
A parsed OpenCoverReport populated from the supplied XML content.
Remarks
This overload encodes the supplied XML string as UTF-8 and parses it using the stream-based reader.
This method uses a forward-only XmlReader with DTD processing disabled and comments and insignificant whitespace ignored.
As modules are parsed, their totals are computed and rolled into the report-wide totals. Report-wide coverage rates are recomputed before the parsed report is returned.