Eugen Martynov
07/05/2026, 8:50 PMEugen Martynov
07/05/2026, 8:52 PMOliver.O
07/05/2026, 9:32 PMEugen Martynov
07/06/2026, 7:36 AMEugen Martynov
07/06/2026, 7:51 AMEugen Martynov
07/06/2026, 8:05 AMOliver.O
07/06/2026, 1:44 PMEugen Martynov
07/06/2026, 1:52 PMOliver.O
07/06/2026, 2:16 PMif no other test infra affected like parallelisationActually, this is not affected by using JUnit 4 vs JUnit Platfom. TestBalloon is fully in control how it runs its tests, and is capable of parallelization on both, JUnit 4 and JUnit Platform. At test run time, these APIs are basically used to forward test events. However, the Android test infra hooks into these test events and expects single-threaded sequential execution. Instrumented tests, for example, would just crash silently with parallel (or even concurrent) event reporting. And UI stuff like activities also expects strictly sequential execution. These are limitations of the underlying Android test infra that can be overcome only if Google decides to change them. Beyond that, yes, JUnit 5 does have some advantage over JUnit 4, but none of them comes close to what a Kotlin-first test framework like TestBalloon can offer. And if that happens to work without rewriting the entire underlying test infra on Android, you get the best of all worlds. Even without parallelization, you have easy parameterization, less code to write and review and a much better Kotlin-first DX. And if you want parallelization: You can put parallelizable code and tests in a JVM-only module where it is clearly independent from Android requirements and safe to run in parallel, but can still be used in Android-specific modules.
Eugen Martynov
07/06/2026, 2:39 PMOliver.O
07/06/2026, 2:44 PM