Table of Contents

Method ForDiscoveryAndExecution

Namespace
Xunit.Runner.v3
Assembly
xunit.v3.runner.utility.netfx.dll

ForDiscoveryAndExecution(XunitProjectAssembly, ISourceInformationProvider?, IMessageSink?, ITestProcessLauncher?)

Returns an implementation of IFrontController which can be used for both discovery and execution of xUnit.net v3 tests.

public static IFrontController ForDiscoveryAndExecution(XunitProjectAssembly projectAssembly, ISourceInformationProvider? sourceInformationProvider = null, IMessageSink? diagnosticMessageSink = null, ITestProcessLauncher? testProcessLauncher = null)

Parameters

projectAssembly

The test project assembly.

sourceInformationProvider

The optional source information provider.

diagnosticMessageSink

The message sink which receives IDiagnosticMessage and IInternalDiagnosticMessage messages.

testProcessLauncher

The test process launcher to use for starting the xUnit.net v3 test process. If not specified, will use LocalOutOfProcessTestProcessLauncher.

Returns