# androidx.test.ext.junit.rules

*** ** * ** ***

## Classes

|---|---|
| `https://developer.android.com/reference/androidx/test/ext/junit/rules/ActivityScenarioRule` | ActivityScenarioRule launches a given activity before the test starts and closes after the test. |
| `https://developer.android.com/reference/androidx/test/ext/junit/rules/ActivityScenarioRuleKt` |   |
| `https://developer.android.com/reference/androidx/test/ext/junit/rules/AppComponentFactoryRule` | JUnit `https://junit.org/junit4/javadoc/latest/org/junit/Rule.html` that let you define a `https://developer.android.com/reference/android/app/AppComponentFactory.html` before the tests starts and clean-up the factory after the test. |
| `https://developer.android.com/reference/androidx/test/ext/junit/rules/DeleteFilesRule` | Deletes files recursively in Android storage directories after each test. |