Stay organized with collections
Save and categorize content based on your preferences.
Annotations
CustomFilter |
Custom test filters for Android tests.
|
FlakyTest |
Designates a test as being flaky (non-deterministic).
|
LargeTest |
Annotation to assign a large test size qualifier to a test.
|
MediumTest |
Annotation to assign a medium test size qualifier to a test.
|
RequiresDevice |
This annotation is deprecated.
This annotation should provide limited benefit.
|
SdkSuppress |
Indicates that a specific test or class should not be run on certain API levels.
|
SmallTest |
Annotation to assign a small test size qualifier to a test.
|
Suppress |
This annotation is deprecated.
Use org.junit.Ignore instead.
|
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.test.filters\n=====================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/test/filters/package-summary \"View this page in Kotlin\") \\|Java\n\nAnnotations\n-----------\n\n|-------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| [CustomFilter](/reference/androidx/test/filters/CustomFilter) | Custom test filters for Android tests. |\n| [FlakyTest](/reference/androidx/test/filters/FlakyTest) | Designates a test as being flaky (non-deterministic). |\n| [LargeTest](/reference/androidx/test/filters/LargeTest) | Annotation to assign a large test size qualifier to a test. |\n| [MediumTest](/reference/androidx/test/filters/MediumTest) | Annotation to assign a medium test size qualifier to a test. |\n| [RequiresDevice](/reference/androidx/test/filters/RequiresDevice) | **This annotation is deprecated.** This annotation should provide limited benefit. \u003cbr /\u003e |\n| [SdkSuppress](/reference/androidx/test/filters/SdkSuppress) | Indicates that a specific test or class should not be run on certain API levels. |\n| [SmallTest](/reference/androidx/test/filters/SmallTest) | Annotation to assign a small test size qualifier to a test. |\n| [Suppress](/reference/androidx/test/filters/Suppress) | **This annotation is deprecated.** Use [org.junit.Ignore](https://junit.org/junit4/javadoc/4.12/org/junit/Ignore.html) instead. \u003cbr /\u003e |\n\nClasses\n-------\n\n|-------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AbstractFilter](/reference/androidx/test/filters/AbstractFilter) | Helper parent class for [Filter](https://junit.org/junit4/javadoc/4.12/org/junit/runner/manipulation/Filter.html) that allows suites to run if any child matches. |"]]