adam bien's blog

JUnit 5: The Single Dependency You Need 📎

JUnit 5 requires a single dependency in the pom.xml:

<dependency>
    <groupId>org.junit.jupiter</groupId>
    <artifactId>junit-jupiter</artifactId>
    <version>5.6.2</version>
    <scope>test</scope>
</dependency>

...unfortunately, you will also have to declare the maven-surefire-plugin with version >=2.22.2:


<plugins>
    <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.2</version>
    </plugin>
</plugins>