Property RunnerSwitch
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
RunnerSwitch
Gets a value which indicates a runner switch which can be used
to explicitly enable the runner. If the return value is null
,
then the reported can only be environmentally enabled (implicitly).
This value is used either as a command line switch (with the console or
.NET CLI runner) or as a runner configuration value (with the MSBuild runner).
public string? RunnerSwitch { get; }
Property Value
Remarks
Runner switches are only used in xUnit.net native CLI mode. When Microsoft Testing Platform CLI mode is enabled, reporters are only supported via environmental enablement, since MTP generally controls all the normal output.