Class TestFramework
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
A default implementation of ITestFramework that tracks objects to be disposed when the framework is disposed. The discoverer and executor are automatically tracked for disposal, since those interfaces mandate an implementation of IDisposable.
public abstract class TestFramework : ITestFramework, IAsyncDisposable
- Inheritance
-
TestFramework
- Implements
- Derived
- Inherited Members
Properties
- DisposalTracker
Gets the disposal tracker for the test framework.
- TestFrameworkDisplayName
Returns the display name of the test framework that this discoverer is running tests for.
- TestPipelineStartup
Gets the value that was set for the test pipeline startup, if one was present.
Methods
- CreateDiscoverer(Assembly)
Override this method to provide the implementation of ITestFrameworkDiscoverer.
- CreateExecutor(Assembly)
Override this method to provide the implementation of ITestFrameworkExecutor.
- DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
- GetDiscoverer(Assembly)
Get a test discoverer.
- GetExecutor(Assembly)
Get a test executor.
- SetTestPipelineStartup(ITestPipelineStartup)
Will be invoked by the test pipeline when the user has provided a startup class. Test frameworks may choose to use this in any way they see fit.