# SmallTest

Summary:[Inherited Methods](https://developer.android.com/reference/android/support/test/filters/SmallTest#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/filters/SmallTest#)  

# SmallTest

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


abstract
@interface
SmallTest
`  
`


implements

`[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`


`

|----------------------------------------|
| android.support.test.filters.SmallTest |

<br />

*** ** * ** ***

Annotation to assign a small test size qualifier to a test. This annotation can be used at a method or class level.

Test size qualifiers are a great way to structure test code and are used to assign a test to a test suite of similar run time.

Execution time: \<200ms

Small tests should be run very frequently. Focused on units of code to verify specific logical conditions. These tests should runs in an isolated environment and use mock objects for external dependencies. Resource access (such as file system, network, or databases) are not permitted. Tests that interact with hardware, make binder calls, or that facilitate android instrumentation should not use this annotation.

Note: This class replaces the deprecated Android platform size qualifier[android.test.suitebuilder.annotation.SmallTest](http://developer.android.com/reference/android/test/suitebuilder/annotation/SmallTest.html)and is the recommended way to annotate tests written with the Android Testing Support Library.

## Summary

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/filters/SmallTest#)From interface` `[java.lang.annotation.Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)` ` |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` abstract `[Class](https://developer.android.com/reference/java/lang/Class.html)`<? extends `[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`>` | ` annotationType() `                                                                       | | ` abstract boolean`                                                                                                                                                                         | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` abstract int`                                                                                                                                                                             | ` hashCode() `                                                                             | | ` abstract `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                         | ` toString() `                                                                             | ||

-

  ## Annotations

  - [FlakyTest](https://developer.android.com/reference/android/support/test/filters/FlakyTest)
  - [LargeTest](https://developer.android.com/reference/android/support/test/filters/LargeTest)
  - [MediumTest](https://developer.android.com/reference/android/support/test/filters/MediumTest)
  - [RequiresDevice](https://developer.android.com/reference/android/support/test/filters/RequiresDevice)
  - [SdkSuppress](https://developer.android.com/reference/android/support/test/filters/SdkSuppress)
  - [SmallTest](https://developer.android.com/reference/android/support/test/filters/SmallTest)
  - [Suppress](https://developer.android.com/reference/android/support/test/filters/Suppress)