Language

FlakyTestAttribute.Tolerance Property

Definition

Indicates how many times a test can run and fail before being reported as a failed test.

[Android.Runtime.Register("tolerance")]
public int Tolerance { get; set; }
[<Android.Runtime.Register("tolerance")>]
member this.Tolerance : int with get, set

Property Value

The number of allowed runs. A new managed attribute has a value of 0. The Java annotation defaults to 1 when no tolerance is specified. If the tolerance is less than 1, the test runs only once.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to