{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME) @Target(value = [java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.TYPE]) annotation Suppress
Use this annotation on test classes or test methods that should not be included in a test suite. If the annotation appears on the class then no tests in that class will be included. If the annotation appears only on a test method then only that method will be excluded.
Note: This class replaces the deprecated Android platform annotation android.test.suitebuilder.annotation.Suppress and is the recommended way to suppress tests written with the AndroidX Test Library.