Table of Contents

Class TestProjectConfiguration

Namespace
Xunit.Runner.Common
Assembly
xunit.v3.runner.common.dll

Represents the configuration settings for a test runner which are independent of the test assembly. Are usually passed via command line or some other equivalent mechanism. Accessed via XunitProject.Configuration.

public class TestProjectConfiguration
Inheritance
TestProjectConfiguration
Inherited Members

Fields

EnvNameNoColor

Gets the environment variable name used to test for the user requesting no color output.

public const string EnvNameNoColor = "NO_COLOR"

Field Value

string

Properties

AssemblyInfo

Gets or sets a flag which indicates whether the runner should return assembly information rather than listing or executing tests.

public bool? AssemblyInfo { get; set; }

Property Value

bool?

AssemblyInfoOrDefault

Gets a flag which indicates whether the runner should return assembly information rather than listing or executing tests. If the flag is not specified, returns the default value (false).

public bool AssemblyInfoOrDefault { get; }

Property Value

bool

Debug

Gets or sets a flag which indicates whether the runner should attempt to attach the debugger before running any tests.

public bool? Debug { get; set; }

Property Value

bool?

DebugOrDefault

Gets a flag which indicates whether the runner should attempt to attach the debugger before running any tests. If the flag is not specified, returns the default value (false).

public bool DebugOrDefault { get; }

Property Value

bool

IgnoreFailures

Gets or sets a flag which indicates whether the runner should ignore test failures.

public bool? IgnoreFailures { get; set; }

Property Value

bool?

IgnoreFailuresOrDefault

Gets a flag which indicates whether the runner should ignore test failures. If the flag is not specified, returns the default value (false).

public bool IgnoreFailuresOrDefault { get; }

Property Value

bool

List

Gets or sets a flag to indicate that we should list things instead of run them (and what we're listing, and in what format).

public (ListOption Option, ListFormat Format)? List { get; set; }

Property Value

(ListOption Option, ListFormat Format)?

NoAutoReporters

Gets or sets a flag indicating that the test runner should not attempt to use any automatically (aka environmentally) enabled reporters.

public bool? NoAutoReporters { get; set; }

Property Value

bool?

NoAutoReportersOrDefault

Gets a flag indicating that the test runner should not attempt to use any automatically (aka environmentally) enabled reporters. If the flag is not set, returns the default value (false).

public bool NoAutoReportersOrDefault { get; }

Property Value

bool

NoColor

Gets or sets a flag indicating that the test runner should not output any color codes when writing text to the console.

public bool? NoColor { get; set; }

Property Value

bool?

NoColorOrDefault

Gets a flag indicating that the test runner should not output any color codes when writing text to the console. If the flag is not set, returns true if the user has defined the NO_COLOR environment variable, or false otherwise.

public bool NoColorOrDefault { get; }

Property Value

bool

Gets or sets a flag indicating that the test runner should not output the copyright information.

public bool? NoLogo { get; set; }

Property Value

bool?

NoLogoOrDefault

Gets a flag indicating that the test runner hsould not output the copyright information. If the flag is not set, returns the default value (false).

public bool NoLogoOrDefault { get; }

Property Value

bool

Output

The output files that should be generated from the test run. The key is the output type, and the value is the output filename. The output type matches the ID property on the transforms available in TransformFactory.AvailableTransforms.

public Dictionary<string, string> Output { get; }

Property Value

Dictionary<string, string>

Pause

Gets or sets a flag indicating that the test runner should pause before running any tests.

public bool? Pause { get; set; }

Property Value

bool?

PauseOrDefault

Gets a flag indicating that the test runner should pause before running any tests. If the flag is not set, returns the default value (false).

public bool PauseOrDefault { get; }

Property Value

bool

UseAnsiColor

Gets or sets a flag indicating that ANSI color usage should be forced on Windows. ANSI color is always used for non-Windows.

public bool? UseAnsiColor { get; set; }

Property Value

bool?

UseAnsiColorOrDefault

Gets a flag indicating that ANSI color usage should be forced on Windows. ANSI color is always used for non-Windows. If the flag is not set, returns the default value (false).

public bool UseAnsiColorOrDefault { get; }

Property Value

bool

Wait

Gets or sets a flag indicating that the test runner should pause after all tests have run.

public bool? Wait { get; set; }

Property Value

bool?

WaitForDebugger

Gets or sets a flag indicating that the test runner should wait for a debugger to be attached before performing any actions.

public bool? WaitForDebugger { get; set; }

Property Value

bool?

WaitForDebuggerOrDefault

Gets a flag indicating that the test runner should wait for a debugger to be attached before performing any actions. If the flag is not set, returns the default value (false).

public bool WaitForDebuggerOrDefault { get; }

Property Value

bool

WaitOrDefault

Gets a flag indicating that the test runner should pause after all tests have run. If the flag is not set, returns the default value (false).

public bool WaitOrDefault { get; }

Property Value

bool