A New Era of Testing
summary
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
chapters (10)
- 0:00JUnit 5 and Android testing
- 1:04JUnit 5 components
- 2:53Setup for unit tests
- 7:07Instrumentation tests
- 11:01Parameterized tests
- 15:36Compose instrumentation example
- 17:41Conditional test execution
- 21:35Parallel test benefits
- 25:09Robolectric support
- 33:35Testing recommendations 2024
related talks
35mJunit5: the next gen of testing, don't stay behind
28mMoving Forward with JUnit 5
01h 06mJUnit 5 — New Opportunities for Testing on the JVM
48mJUnit 5: New Opportunities for Testing on the JVM
44mJUnit 5: The Next Step in Automated Testing for Java
51mJUnit 5 — The New Testing Framework for Java and Platform for the JVM
51mJUnit 5
51mJUnit 5: what's new and what's coming
