# SmallTest

Added in[API level 2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# SmallTest

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/test/suitebuilder/annotation/SmallTest "View this page in Java")  

```
@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.CLASS, AnnotationTarget.FILE]) class SmallTest
```

|--------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.test.suitebuilder.annotation.SmallTest](https://developer.android.com/reference/kotlin/android/test/suitebuilder/annotation/SmallTest#) |

*** ** * ** ***

| **This annotation was deprecated in API level 24.**
|
| Use[SmallTest](https://developer.android.com/reference/android/support/test/filters/SmallTest.html)instead. New tests should be written using the[Android Testing Support Library](https://developer.android.com/tools/testing-support-library/index.html).

Marks a test that should run as part of the small tests.

## Summary

|                                                                                  Public constructors                                                                                   ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [SmallTest](https://developer.android.com/reference/kotlin/android/test/suitebuilder/annotation/SmallTest#SmallTest())`()` Marks a test that should run as part of the small tests. |

## Public constructors

### SmallTest

Added in[API level 2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
SmallTest()
```

**Deprecated:** *Use[SmallTest](https://developer.android.com/reference/android/support/test/filters/SmallTest.html)instead. New tests should be written using the[Android Testing Support Library](https://developer.android.com/tools/testing-support-library/index.html).*

Marks a test that should run as part of the small tests.