Overview of androidx.test
summary
Overview of AndroidX Test tools and tradeoffs: Android Test Orchestrator runs each test in a fresh process and clears app data between methods (avoids cross-test state, slower), AndroidJUnitRunner is an Instrumentation subclass that runs tests on a separate instrumentation thread and exposes target/context and runtime flags, Robolectric executes Android framework on the JVM (downloads matching SDK, requires JDK9+, fragile on AGP/SDK upgrades), Espresso handles main-thread synchronization, and AndroidX Truth gives much clearer assertion failures than raw JUnit.
AI-written summary · about
