You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

JUnit is one of the most popular unit-testing frameworks in the Java ecosystem.

1.1. 1.1. What is JUnit 5?

Unlike previous versions of JUnit, JUnit 5 is composed of several different modules from three different sub-projects.

JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage

  • JUnit Platform - foundation layer which enables different testing frameworks to be launched on the JVM

  • Junit Jupiter - is the JUnit 5 test framework which is launched by the JUnit Platform

  • JUnit Vintage - legacy TestEngine which runs older tests


Requirements:

JUnit 5 needs already installed to run:

  • at least Java 8
  • Maven / Gradle  (In this tutorial we'll be using Maven)


The JUnit 5 version contains a number of exciting innovations, with the goal to support new features in Java 8 and above, as well as enabling many different styles of testing.

If you want to know more about JUnit, refer to the official documentation


  • No labels