~/talk

A New Era of Testing

Talkat DroidKaigi 2024 · 2024-09-11..09-13· [testing, android]
slides:none on file

JUnit 5 is usable on Android now via an Android JUnit5 Gradle plugin and Jupiter libraries (example uses 5.11); unit tests get parameterized features like CSV source parameterized tests and parallel execution that yields a 3x speedup in the demo, while instrumentation tests run on real devices but require API 26+ (older devices skip tests). Robolectric works experimentally through a experimental Robolectric extension but currently breaks Compose and Espresso combos; continue using Vintage for existing JUnit4/Robolectric tests.

AI-written summary · about

  1. 0:00JUnit 5 and Android testing
  2. 1:04JUnit 5 components
  3. 2:53Setup for unit tests
  4. 7:07Instrumentation tests
  5. 11:01Parameterized tests
  6. 15:36Compose instrumentation example
  7. 17:41Conditional test execution
  8. 21:35Parallel test benefits
  9. 25:09Robolectric support
  10. 33:35Testing recommendations 2024
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.