~/talk

Shift Left: Unit test your compose UI with reusable robots a...

Talkat next.app devCon 2026 · 2026-10-07..10-09· [testing, frontend-architecture]
links:none on file
slides:none on file

Shows how far JVM JUnit can replace instrumentation for Compose UI by using reusable robot screens, a tiny toy weather app wired to Open‑Meteo, and a behavior‑driven Kotlin DSL that mirrors feature files so tests read like Given/When/Then. Uses Robolectric’s shadow application to grant/deny permissions, ActivityScenario for deep links, a test lifecycle owner to trigger resume, plus test fixtures or a test module; claims about 95% fidelity and much faster, cheaper CI runs while warning it’s not a silver bullet.

AI-written summary · about

  1. 0:00Introduction to Compose UI testing
  2. 1:02Origin of robot testing in UI
  3. 2:05Why unit test Compose UI
  4. 3:50Configuring JVM for private APIs
  5. 4:53Demo weather app setup
  6. 5:37Testing permissions in JVM
  7. 7:03Testing lifecycle events in JUnit
  8. 8:49Testing deep links in unit tests
  9. 10:14Compose test rule APIs overview
  10. 13:48Challenges with UI changes in tests
  11. 15:12Introducing robot screens for stability
  12. 17:43Handling merged accessibility nodes
  13. 18:25Ensuring test stability with waits
  14. 19:47Reusing robots with test fixtures
  15. 20:31Robot implementation example
  16. 21:56Benefits of robot testing
  17. 22:18Automated vs manual testing coverage
  18. 24:24Solving knowledge gaps with feature files
  19. 26:09Writing effective feature files
  20. 29:18Feature file example breakdown
  21. 31:02Implementing feature files in tests
  22. 32:50Creating a Kotlin DSL for tests
  23. 34:15When to use AI vs manual testing
  24. 35:16Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.