ITestRunInfo Interface

Definition

Read-only ambient information about the current test run. Accessed via Current.

public interface ITestRunInfo
[System.Diagnostics.CodeAnalysis.Experimental("MSTESTEXP", UrlFormat="https://aka.ms/mstest/diagnostics#{0}")]
public interface ITestRunInfo
type ITestRunInfo = interface
[<System.Diagnostics.CodeAnalysis.Experimental("MSTESTEXP", UrlFormat="https://aka.ms/mstest/diagnostics#{0}")>]
type ITestRunInfo = interface
Public Interface ITestRunInfo
Attributes

Remarks

Unlike TestContext, which describes the test currently executing, an ITestRunInfo describes the run as a whole and is queryable from any code reachable during a test run (for example helpers, fixtures, or [AssemblyInitialize] methods).

Properties

Name Description
PlannedTests

Gets the tests that have been discovered and have passed the active filter for the currently-executing assembly. The collection is empty until the platform begins executing tests for an assembly.

Applies to