Class TestFrameworkExecutor<TTestCase>
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
A reusable implementation of ITestFrameworkExecutor which contains the basic behavior for running tests.
public abstract class TestFrameworkExecutor<TTestCase> : ITestFrameworkExecutor, IAsyncDisposable where TTestCase : ITestCase
Type Parameters
TTestCaseThe type of the test case used by the test framework. Must derive from ITestCase.
- Inheritance
-
TestFrameworkExecutor<TTestCase>
- Implements
- Derived
- Inherited Members
Constructors
- TestFrameworkExecutor(ITestAssembly)
A reusable implementation of ITestFrameworkExecutor which contains the basic behavior for running tests.
Properties
- DisposalTracker
Gets the disposal tracker for the test framework discoverer.
- TestAssembly
Gets the test assembly for execution.
Methods
- CreateDiscoverer()
Override to create a test framework discoverer that can be used to discover tests when the user asks to run all test.
- DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
- RunTestCases(IReadOnlyCollection<TTestCase>, IMessageSink, ITestFrameworkExecutionOptions, CancellationToken)
Runs selected test cases in the assembly.