Table of Contents

Interface IFrontControllerDiscoverer

Namespace
Xunit
Assembly
xunit.v3.runner.common.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.

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

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.