Interface ITestFrameworkExecutor
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
testCasesIReadOnlyCollection<ITestCase>The test cases to run.
executionMessageSinkIMessageSinkThe message sink to report results back to.
executionOptionsITestFrameworkExecutionOptionsThe options to be used during test execution.
cancellationTokenCancellationToken?The optional cancellation token which can be used to cancel the test execution process.