• Grey Facebook Icon
  • Grey Twitter Icon
  • Grey YouTube Icon

Droidcon is a registered trademark of Mobile Seasons GmbH

Junit5: the next gen of testing, don't stay behind

Danny Preussler

Head of Mobile, sporttotal.tv

Junit 5 is a big step for the world of unit testing. A new very flexible testing framework, based on learning from many years of Junit 4. At sporttotal we use this for our Android unit tests and it changed the way we write tests. Hard for us to imagine living without features like @Nested. Other features we ignored as those are more leaning towards Java and are solved already by Kotlin or other Kotlin libraries. And some features are even breaking changes. How do you test on Android in a world without TestRunner and TestRules? Android testing team was always very slowly in adopting to new Junit versions, so how far can we bypass this? Let's do a deep dive into Junit5, how it works and how we can use it on Android