FlakyTest
@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) classFlakyTest
android.test.FlakyTest |
This annotation can be used on an android.test.InstrumentationTestCase
's test methods. When the annotation is present, the test method is re-executed if the test fails. The total number of executions is specified by the tolerance and defaults to 1.
Summary
Public constructors | |
---|---|
This annotation can be used on an |
Properties | |
---|---|
Int |
Indicates how many times a test can run and fail before being reported as a failed test. |
Public constructors
FlakyTest
FlakyTest(tolerance: Int)
Deprecated: Use FlakyTest instead. New tests should be written using the Android Testing Support Library.
This annotation can be used on an android.test.InstrumentationTestCase
's test methods. When the annotation is present, the test method is re-executed if the test fails. The total number of executions is specified by the tolerance and defaults to 1.
Properties
tolerance
valtolerance: Int
Deprecated: Deprecated in Java.
Indicates how many times a test can run and fail before being reported as a failed test. If the tolerance factor is less than 1, the test runs only once.
Return | |
---|---|
Int |
The total number of allowed run, the default is 1. |