Table of Contents

Interface ITestFrameworkExecutor

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

Represents an implementation of the execution part of a test framework. Implementations may optionally implement IDisposable and/or IAsyncDisposable for cleanup operations.

public interface ITestFrameworkExecutor

Methods

RunTestCases(IReadOnlyCollection<ITestCase>, IMessageSink, ITestFrameworkExecutionOptions, CancellationToken?)

Runs selected test cases in the assembly.

ValueTask RunTestCases(IReadOnlyCollection<ITestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions, CancellationToken? cancellationToken = null)

Parameters

testCases IReadOnlyCollection<ITestCase>

The test cases to run.

executionMessageSink IMessageSink

The message sink to report results back to.

executionOptions ITestFrameworkExecutionOptions

The options to be used during test execution.

cancellationToken CancellationToken?

The optional cancellation token which can be used to cancel the test execution process.

Returns

ValueTask