Interface IFrontControllerDiscoverer
- Namespace
- Xunit
- Assembly
- xunit.v3.runner.utility.netfx.dll
Represents a class which acts as a front controller for unit testing frameworks for the purposes of discovery (which can include source-based discovery). Tests found with these classes can later be run by an instance of IFrontController. This allows runners to run tests from multiple unit testing frameworks (in particular, hiding the differences between xUnit.net v1, v2, and v3 tests).
public interface IFrontControllerDiscoverer : IAsyncDisposable
- Inherited Members
Properties
CanUseAppDomains
Gets a flag indicating whether this discovery/execution can use app domains.
bool CanUseAppDomains { get; }
Property Value
TargetFramework
Gets the target framework that the test assembly is linked against.
string TargetFramework { get; }
Property Value
TestAssemblyUniqueID
Gets the unique ID for the test assembly provided to the discoverer.
string TestAssemblyUniqueID { get; }
Property Value
TestFrameworkDisplayName
Returns the display name of the test framework that this discoverer is running tests for.
string TestFrameworkDisplayName { get; }
Property Value
Methods
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.
void Find(IMessageSink messageSink, FrontControllerFindSettings settings)
Parameters
messageSinkIMessageSinkThe message sink to report results back to.
settingsFrontControllerFindSettingsThe settings used during discovery.