- Demo-Project to reproduce junit-team/junit5#1724
cd junit5-spring-boot
mvn clean package
java -jar junit5-spring-boot-application/target/junit5-spring-boot-application-1.0.0-SNAPSHOT.jar
- When executed within an IDE which uses a regular classpath, the tests are executed
- When executed as Spring Boot JAR, the tests are not executed
- When executed with a class selector, the tests are executed
The junit5-spring-boot-tests
JAR which contains the tests is located in BOOT-INF/lib
within the junit5-spring-boot-application
JAR.
JUnit tries to load the class by executing Files.walkFileTree()
which seems not to work with nested JAR files.