Appearance
ReadFile Method
Definition
- Namespace:
JASE.TestAnalysis - Assembly:
JASE.TestAnalysis.dll
CoberturaReport ReadFile(string path, CoverageOptions options = null)
csharp
CoberturaReport ReadFile(string path, CoverageOptions options = null)Reads an Cobertura coverage report from a file containing XML content.
Parameters
| Name | Description |
|---|---|
options | Optional coverage reader options. If , default options are created. |
path | The path to a file containing Cobertura-formatted XML. |
Returns
A parsed CoberturaReport 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.
After parsing, package totals are rolled into report totals and report-wide rates are recomputed.