Table of Contents

Method GetMaxParallelThreadsOrDefault

Namespace
Xunit.Sdk
Assembly
xunit.v3.runner.common.dll

GetMaxParallelThreadsOrDefault(ITestFrameworkExecutionOptions)

Gets the maximum number of threads to use when running tests in parallel. If set to 0 (or not set), the value of ProcessorCount is used; if set to a value less than 0, does not limit the number of threads.

public static int GetMaxParallelThreadsOrDefault(this ITestFrameworkExecutionOptions executionOptions)

Parameters

executionOptions

Returns

int