Skip to content

ReadFile Method ​

Definition ​

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

TestRunSummary ReadFile(string path, string coveragePath = null) ​

csharp
TestRunSummary ReadFile(string path, string coveragePath = null)

Reads a Visual Studio TRX test results document from a file on disk, with optional coverage loaded from a second file.

Parameters ​

NameDescription
coveragePathAn optional full path to a coverage XML file. When provided, the file must contain either Cobertura or OpenCover XML. If , empty, or whitespace, coverage information is omitted.
pathThe full path to a Visual Studio TRX file.

Returns ​

A TestRunSummary containing parsed test results, timing data, and metadata extracted from the TRX content and optional coverage information.

Remarks ​

This overload opens the specified file or files for read access and delegates to the stream-based reader.