Marc Philipp — JUnit 5 extensions: from conditional test execution to test templates

Ближайшая конференция: JPoint 2023, 12–13 апреля (Online), 18–19 апреля (Offline) Подробности и билеты: — — . . . . Attention! To fully understand everything Marc will tell us in this talk, we strongly encourage you to watch his previous talk “JUnit 5 — The New Testing Framework for Java and Platform for the JVM“: JUnit 5 has finally arrived! It introduces a completely new extension model that allows to customize almost every aspect of test execution. For example, it lets you define custom conditions to decide whether a test should be executed or skipped. Test lifecycle callbacks allow to encapsulate common setup/teardown code in an extension. An extension can pass values or inject dependencies to a test by post-processing test instances, or resolving test method parameters. Moreover, you can even write an extension that specifies how a test method becomes a template for multiple tests and how to invoke
Back to Top