JUnit is back with all-new features, ready to correct the mistakes of its predecessor. This presentation points out the major differences between JUnit 4 and JUnit 5 with focus on the novelties, and discusses the strategies for migrating from the former to the latter.
http://jug.mk/javaskop19#speaker-mnachev
JUnit 4 might be considered the standard testing framework in Java, but since its release in 2006 not much has changed, as the framework neglected to provide ways to simplify testing or make it more flexible. Luckily, in 2017, a developer-friendly upgrade - JUnit 5 - was released with its main goals being to be both backwards and forwards compatible. JUnit 5 features include parallel and conditional test execution, tagging, nested tests, dynamic tests, repeated tests, parametrized tests, custom display names and more. Furthermore, with the new JUnit Platform, third-party test engines can be developed for other JVM languages. This presentation walks the audience through the JUnit 5 architecture, highlights the advantages over its predecessor, and covers the way to migrate from JUnit 4 to JUnit 5.