# Suppress

Artifact: [androidx.test:runner](https://developer.android.com/jetpack/androidx/releases/test) [View Source](https://cs.android.com/search?q=file:androidx/test/filters/Suppress.java+class:androidx.test.filters.Suppress)

*** ** * ** ***


```
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = [ElementType.METHOD, ElementType.TYPE])
public annotation Suppress
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This annotation is deprecated.**   
>
> Use `https://junit.org/junit4/javadoc/latest/org/junit/Ignore.html` instead.

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](http://developer.android.com/reference/android/test/suitebuilder/annotation/Suppress.html) and is the recommended way to suppress tests written with the AndroidX Test Library.