Skip to content

ReadFile Method ​

Definition ​

  • Namespace: JASE.TestAnalysis
  • Assembly: JASE.TestAnalysis.dll

OpenCoverReport ReadFile(string path, CoverageOptions options = null) ​

csharp
OpenCoverReport ReadFile(string path, CoverageOptions options = null)

Reads an OpenCover coverage report from a file containing XML content.

Parameters ​

NameDescription
optionsOptional coverage reader options. If , default options are created.
pathThe path to a file containing OpenCover-formatted XML.

Returns ​

A parsed OpenCoverReport populated from the supplied file.

Remarks ​

This overload opens the specified file for reading 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.