Testing rebooted (with AndroidX Test)
summary
AndroidX Test 1.0 ships with concrete, cross‑runtime APIs: ApplicationProvider for a single app context, ActivityScenario with moveToState and recreate to drive lifecycle testing, FragmentScenario, Espresso and Truth Android subjects for intent and view assertions. Roboelectric 4.0 and device runs use the same tests; verification runs across API level 15 through latest. Recommended flow: iterate locally with Robolectric, then run identical tests on virtual/real devices before submit.
AI-written summary · about
chapters (13)
- 0:00Introduction to testing
- 0:37Local vs instrumentation
- 1:40Instrumentation test issues
- 2:45The android testing story
- 5:08Introducing AndroidX Test
- 6:18New AndroidX Test features
- 9:02Application provider API
- 10:47Activity scenario driving
- 12:20Testing lifecycle states
- 14:48Activity recreation testing
- 16:34Truth extensions for intents
- 17:38AndroidX Test components
- 19:17Unified testing workflow
related talks
40mGetting Started with AndroidX Test
38mGetting Started with AndroidX Test
34mFrictionless Android testing: Write once, run everywhere
41mAndroid Testing Bootstrap
42mProduction Level Test Driven Development and What's new
46mEfficient Android UI Testing
35mOne test suite for instrumentation and Robolectric tests
36mA New Era of Testing
