The Mail Failsafe plugin will not find my JUnit 5 integration tests, although it can find files.
I have junit-jupiter-api
, and junit-jupiter-engine
how to test the relationship:
<properties>
<junit.jupiter.version>5.0.1</junit.jupiter.version>
</properties>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
My integration tests are named correctly following **/*IT.java
, **/IT*.java
or **/*ITCase.java
, which by default were enabled by Failsafe and by default excluded by Surefire.
Is there a way I can use JUnit 5 tests with Failsafe?
source
share