Table of Contents

Class LocalOutOfProcessTestProcessLauncher

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

Implementation of ITestProcessLauncher that will launch an xUnit.net v3 test project out-of-process on the local machine.

public sealed class LocalOutOfProcessTestProcessLauncher : OutOfProcessTestProcessLauncherBase, ITestProcessLauncher
Inheritance
LocalOutOfProcessTestProcessLauncher
Implements
Inherited Members

Properties

Instance

Gets the singleton instance of LocalOutOfProcessTestProcessLauncher.

public static LocalOutOfProcessTestProcessLauncher Instance { get; }

Property Value

LocalOutOfProcessTestProcessLauncher

Methods

StartTestProcess(string, string, string?)

Starts the test process.

protected override sealed ITestProcess? StartTestProcess(string executable, string executableArguments, string? responseFile)

Parameters

executable string

The executable to be launched (note that this may not be a fully qualified path name, as it may be depending on the system path to locate the executable)

executableArguments string

The arguments to pass to the executable

responseFile string

The response file that's being used, if present

Returns

ITestProcess

Remarks

The response file will be part of the executableArguments, but the actual path to the response file is provided here in the even that it needs to be modified or copied elsewhere (at which point the developer is responsible for updating executableArguments to point to the new response file location). Additionally, the developer is responsible for deleting the response file from the disk when the execution is complete.