IGracefulStopTestExecutionCapability Interface

Definition

A capability to support stopping test execution gracefully, without cancelling/aborting everything. This is used to support '--maximum-failed-tests'.

C#
public interface IGracefulStopTestExecutionCapability : Microsoft.Testing.Platform.Capabilities.TestFramework.ITestFrameworkCapability
Implements

Remarks

Test frameworks can choose to run any needed cleanup when cancellation is requested.

Methods

StopTestExecutionAsync(CancellationToken)

Stops the test execution gracefully.

Applies to

Producto Versiones
Microsoft Testing Platform 1.5.3, 1.6.0