Table of Contents

Interface ICollectionBehaviorAttribute

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

Used to declare the default test collection behavior for the assembly. This is only valid at the assembly level, and there can be only one.

public interface ICollectionBehaviorAttribute

Properties

CollectionFactoryType

Gets the collection factory type specified by this collection behavior attribute.

DisableTestParallelization

Determines whether tests in this assembly are run in parallel.

MaxParallelThreads

Determines how many tests can run in parallel with each other. If set to 0, the system will use ProcessorCount. If set to a negative number, then there will be no limit to the number of threads.

ParallelAlgorithm

Determines the parallel algorithm used when running tests in parallel.