Table of Contents

Class TestOptionsNames.Execution

Namespace
Xunit.Sdk

Test options names used with ITestFrameworkExecutionOptions.

public static class TestOptionsNames.Execution
Inheritance
TestOptionsNames.Execution
Inherited Members

Fields

AssertEquivalentMaxDepth

The maximum recursive depth for object comparisons with Assert.Equivalent.

public static readonly string AssertEquivalentMaxDepth

Field Value

string

Remarks

Value type: int
Consumed by: v3 1.1.0+

Culture

The culture to be used for execution. null means the default system culture, Empty means the invariant culture, and any other value is assumed to be a culture name that the system understands.

public static readonly string Culture

Field Value

string

Remarks

Value type: string
Consumed by: v3

DiagnosticMessages

Set to true to enable display of diagnostic messages.

public static readonly string DiagnosticMessages

Field Value

string

Remarks

Value type: bool
Consumed by: v2, v3

DisableParallelization

Set to true to disable running tests in parallel.

public static readonly string DisableParallelization

Field Value

string

Remarks

Value type: bool
Consumed by: v2, v3

ExplicitOption

Gets a flag which indicates the user's desire to run explicit tests.

public static readonly string ExplicitOption

Field Value

string

Remarks

Value type: ExplicitOption
Consumed by: v3

FailSkips

Set to true to convert skipped tests into failed tests.

public static readonly string FailSkips

Field Value

string

Remarks

Value type: bool
Consumed by: v3

FailTestsWithWarnings

Set to true to convert passing tests with warnings into failed tests.

public static readonly string FailTestsWithWarnings

Field Value

string

Remarks

Value type: bool
Consumed by: v3

InternalDiagnosticMessages

Set to true to enable display of internal diagnostic messages.

public static readonly string InternalDiagnosticMessages

Field Value

string

Remarks

Value type: bool
Consumed by: v2, v3

MaxParallelThreads

Sets the maximum number of parallel threads to use during execution. Set to -1 to run with unlimited threads; set to 0 to use the system default (equal to ProcessorCount; set to any other positive integer to use that number of threads.

public static readonly string MaxParallelThreads

Field Value

string

Remarks

Value type: int
Consumed by: v2, v3

ParallelAlgorithm

Set the algorithm to use for parallelization.

public static readonly string ParallelAlgorithm

Field Value

string

Remarks

Value type: ParallelAlgorithm
Consumed by: v2, v3

PrintMaxEnumerableLength

Sets the maximum number of items to print in a collection.

public static readonly string PrintMaxEnumerableLength

Field Value

string

Remarks

Value type: int
Consumed by: v3 1.1.0+

PrintMaxObjectDepth

Sets the maximum recursive depth when printing object values.

public static readonly string PrintMaxObjectDepth

Field Value

string

Remarks

Value type: int
Consumed by: v3 1.1.0+

PrintMaxObjectMemberCount

Sets the maximum number of members to show when printing object values.

public static readonly string PrintMaxObjectMemberCount

Field Value

string

Remarks

Value type: int
Consumed by: v3 1.1.0+

PrintMaxStringLength

Sets the maximum length when printing a string value.

public static readonly string PrintMaxStringLength

Field Value

string

Remarks

Value type: int
Consumed by: v3 1.1.0+

Seed

Set the seed to use for randomization. When unset (or set to null), will use the default system-computed seed.

public static readonly string Seed

Field Value

string

Remarks

Value type: int
Consumed by: v3

ShowLiveOutput

Set to true to show output live while tests are running, in addition to showing collected output when the test has finished.

public static readonly string ShowLiveOutput

Field Value

string

Remarks

Value type: bool
Consumed by: v2, v3

StopOnFail

Set to true to attempt to stop execution as soon the first test fails.

public static readonly string StopOnFail

Field Value

string

Remarks

Value type: bool
Consumed by: v2, v3

SynchronousMessageReporting

Set to true to enable synchronous message reporting; set to false to enable asynchronous message reporting. Synchronous in this case means the system will wait for the runner to process a message before delivering the next one.

public static readonly string SynchronousMessageReporting

Field Value

string

Remarks

Value type: bool
Consumed by: v2, v3