Version 5 of the popular JUnit testing framework for the JVM. JUnit is a framework for writing repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage
JUnit 5 is the 5th generation of the popular JUnit testing framework for the JVM based on Java 8 and compatible with Java 9, 10, and 11.
The JUnit Platform serves as a foundation for launching testing frameworks on the JVM. It also defines the TestEngine
API for developing a testing framework that runs on the platform. Furthermore, the platform provides a Console Launcher to launch the platform from the command line and build plugins for Gradle and Maven as well as a JUnit 4 based Runner for running any TestEngine
on the platform.
JUnit Jupiter is the combination of the new programming model and extension model for writing tests and extensions in JUnit 5. The Jupiter sub-project provides a TestEngine
for running Jupiter based tests on the platform.
JUnit Vintage provides a TestEngine
for running JUnit 3 and JUnit 4 based tests on the platform.
JUnit 5 Resources
- Project Homepage
- User Guide
- Javadoc
- GitHub Repository for source code and issues
- JUnit 5 Gitter Channel
- JUnit Team on Twitter
Frequently asked questions
Tags
Use the junit5 tag only for questions related to features provided by version 5 or migration to version 5.
Use the junit-jupiter tag only for questions that are specific to JUnit Jupiter.
Use the junit tag for general questions related to JUnit.