Class Xunit3
- Namespace
- Xunit.Runner.v3
- Assembly
- xunit.v3.runner.utility.netfx.dll
This class is used to do discovery and execution of xUnit.net v3 tests. Runner authors are strongly encouraged to use XunitFrontController instead of using this class directly.
public class Xunit3 : IFrontController, IFrontControllerDiscoverer, IAsyncDisposable
- Inheritance
-
Xunit3
- Implements
- Inherited Members
Properties
- CanUseAppDomains
Gets a flag indicating whether this discovery/execution can use app domains.
- CoreFrameworkVersion
Gets the version of
xunit.v3.core.dll
the test assembly is linked against.
- CoreFrameworkVersionInformational
Gets the informational version of
xunit.v3.core.dll
the test assembly is linked against.
- TargetFramework
Gets the target framework that the test assembly is linked against.
- TestAssemblyUniqueID
Gets the unique ID for the test assembly provided to the discoverer.
- TestFrameworkDisplayName
Returns the display name of the test framework that this discoverer is running tests for.
Methods
- DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
- Find(IMessageSink, FrontControllerFindSettings)
Starts the process of finding tests in an assembly. Typically only used by runners which discover tests and present them into a UI for the user to interactively choose for selective run (via Run(IMessageSink, FrontControllerRunSettings)). For runners which simply wish to discover and immediately run tests, they should instead use FindAndRun(IMessageSink, FrontControllerFindAndRunSettings), which permits the same filtering logic as this method.
- FindAndRun(IMessageSink, FrontControllerFindAndRunSettings)
Starts the process of finding and running tests in an assembly. Typically only used by runner which do not present test discovery UIs to users that allow them to run selected tests (those should instead use Find(IMessageSink, FrontControllerFindSettings) and Run(IMessageSink, FrontControllerRunSettings) as separate operations).
- ForDiscoveryAndExecution(XunitProjectAssembly, ISourceInformationProvider?, IMessageSink?, ITestProcessLauncher?)
Returns an implementation of IFrontController which can be used for both discovery and execution of xUnit.net v3 tests.
- Run(IMessageSink, FrontControllerRunSettings)
Starts the process of running selected tests in the assembly. The serialized test cases to run come from calling Find(IMessageSink, FrontControllerFindSettings).