FinishedRun
Namespace: E2E.Reports
public sealed record FinishedRun : IEquatable<FinishedRun>What a reporter receives once the run is over and its report is on disk (upstream’s FinishedRun, types.ts).
Inheritance: object
Implements: IEquatable<FinishedRun>
Constructors
Section titled “Constructors”FinishedRun(Report, ReportRunStatus, int, string, string, string)
Section titled “FinishedRun(Report, ReportRunStatus, int, string, string, string)”public FinishedRun(Report Report, ReportRunStatus Status, int ExitCode, string ProjectRoot, string ReportPath, string ArtifactsRoot)What a reporter receives once the run is over and its report is on disk (upstream’s FinishedRun, types.ts).
Parameters
| Name | Type | Description |
|---|---|---|
Report |
Report | The report-1 document, as written to <code class=“paramref”>ReportPath</code>. |
Status |
ReportRunStatus | The same status Report.Run.Status carries. |
ExitCode |
int | The exit code the run ended with (upstream’s exitCode). The test process’s own exit code is the test framework’s. |
ProjectRoot |
string | Absolute project root, what the terminal shows paths relative to. |
ReportPath |
string | Where report.json was written. |
ArtifactsRoot |
string | Absolute directory the report’s artifact paths are relative to: <output>/results. |
Properties
Section titled “Properties”AiTracePath
Section titled “AiTracePath”public string? AiTracePath { get; init; }Where E2E_AI_TRACE=1 wrote the process’s model calls, once the file exists (ai-trace-<process id>.json in the output directory,
one file for the whole process); null when the process recorded none. Upstream’s aiTracePath.
Value: string
ArtifactsRoot
Section titled “ArtifactsRoot”public string ArtifactsRoot { get; init; }Absolute directory the report’s artifact paths are relative to: <output>/results.
Value: string
ExitCode
Section titled “ExitCode”public int ExitCode { get; init; }The exit code the run ended with (upstream’s exitCode). The test process’s own exit code is the test framework’s.
Value: int
LastRun
Section titled “LastRun”public Report? LastRun { get; init; }The report of the run this one reran, when it was a --last-failed rerun (E2E_LAST_FAILED): the report.json it selected from, read before this
run replaced it. A reporter can fold the two into one view of the suite. Null for any other run. Upstream’s lastRun.
Value: Report
ProjectRoot
Section titled “ProjectRoot”public string ProjectRoot { get; init; }Absolute project root, what the terminal shows paths relative to.
Value: string
Report
Section titled “Report”public Report Report { get; init; }The report-1 document, as written to <code class=“paramref”>ReportPath</code>.
Value: Report
ReportPath
Section titled “ReportPath”public string ReportPath { get; init; }Where report.json was written.
Value: string
Status
Section titled “Status”public ReportRunStatus Status { get; init; }The same status Report.Run.Status carries.
Value: ReportRunStatus
Traces
Section titled “Traces”public IReadOnlyDictionary<string, string> Traces { get; init; }The trace page the process wrote for each test that kept a trace, by report result id, as a path from ProjectRoot
(.e2e/results/checkout-applies-the-coupon-1a2b3c4d5e6f7a8b/trace.md). Empty when no test kept one. Upstream’s traces, a map.