Skip to content
ConsoleMonster
Class

TestRunSnapshot

ConsoleMonster.TestRuns

Namespace
ConsoleMonster.TestRuns
Assembly
ConsoleMonster
Modifiers
sealed

A consistent copy of a TestRun at one moment.

Inheritance

  • object
  • TestRunSnapshot

Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 5

Properties

public IReadOnlyList<TestRecord> Investigations { get; } #

The results to investigate, in the order they ended.

public int Errors { get; } #

Tests that could not run to a verdict (StatusKind.Error).

public int Investigate { get; } #

Tests to investigate (StatusKind.Investigate).

public IReadOnlyList<TestGroupState> Groups { get; } #

The groups the records named (TestRecord.Group) in the order they first appeared; empty when none did.

public IReadOnlyList<TestReasonCount> Reasons { get; } #

Skipped and not-run records counted by reason, in the order each reason first appeared.

public Severity? WorstSeverity { get; } #

The worst severity among the records that did not pass, or null.

public bool HasSeverity { get; } #

Whether any record had a severity, so a summary shows the severity column.

public IReadOnlyList<StatusKind> Outcomes { get; } #

The outcome of every test that ended, in the order they ended (for an outcome grid).

public TimeSpan? CurrentStarted { get; } #

When the running test started (run time), or null.

public int? Total { get; } #

The planned test count, once discovery has finished.

public int Passed { get; } #

Tests passed.

public int Failed { get; } #

Tests failed.

public int Skipped { get; } #

Tests skipped.

public int Inconclusive { get; } #

Tests inconclusive.

public int NotRun { get; } #

Tests not run.

public int Done { get; } #

Tests that ended, whatever the outcome.

public IReadOnlyList<TestContainerState> Containers { get; } #

Containers in the order they started.

public IReadOnlyList<TestRecord> Failures { get; } #

Failures with a message, and block failures, in the order they happened.

public IReadOnlyList<TestRecord> Slowest { get; } #

The slowest tests, slowest first.

public IReadOnlyList<double> Durations { get; } #

Durations of the tests that ran, in milliseconds.

public string? CurrentName { get; } #

The running test, or null.

public IReadOnlyList<string> CurrentBlocks { get; } #

The running test's blocks.

public string? CurrentContainer { get; } #

The running container's key, or null.

public TimeSpan Elapsed { get; } #

The run time (fixed once the run finished).

public bool IsFinished { get; } #

Whether the run finished.

public int BlockFailures { get; } #

Block failures (setup or teardown outside tests).

public StatusKind Status { get; } #

The overall status: running, then fail, error, investigate, warn, skip, not run or pass.