Table of Contents

Property Timeout

Namespace
Xunit
Assembly
xunit.v3.core.dll

Timeout

A value greater than zero marks the test as having a timeout, and gets or sets the timeout (in milliseconds). A non-null value here overrides any inherited value from the IDataAttribute or the ITheoryAttribute.

public int? Timeout { get; set; }

Property Value

int?

Remarks

WARNING: Using this with parallelization turned on will result in undefined behavior. Timeout is only supported when parallelization is disabled, either globally or with a parallelization-disabled test collection.