语言

FlakyTestAttribute.Tolerance 属性

定义

指示测试在报告为失败测试之前可以运行和失败的次数。

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

属性值

允许的运行总数;默认值为 1。 如果容差系数小于 1,则测试仅运行一次。

特性

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于