Primary Sidebar

Hot Topics

Writing

Talks

Meta

Follow Me

JUnit 5

JUnit 5 is the next version of Java’s most ubiquitous testing framework.

Its incremental improvements and extensible design make it a worthy successor of the battle-tested JUnit 4. But its secret power is its thoughtful architecture, which may very well redefine the future of testing on the JVM.

A series of posts covers all the details – obvious and hidden ones – of JUnit 5. If you want to learn more about the topic, you can hire me as a trainer.

JUnit 4 came in a single artifact, blending all uses cases into one bundle. The JUnit 5 architecture promotes a better separation of concerns and provides clear APIs for testers (Jupiter) and tools (Platform).

Get to know the basics of JUnit 5: @Test, lifecycle methods, assertions, and assumptions; how to disable, name, and tag tests; as well as previews on nesting, parameterization, and test interfaces. Let’s write some tests!