Skip to content

ferstl/junit5-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

junit5-spring-boot

- Demo-Project to reproduce junit-team/junit5#1724

How to build and run:

cd junit5-spring-boot

mvn clean package
java -jar junit5-spring-boot-application/target/junit5-spring-boot-application-1.0.0-SNAPSHOT.jar

Observed Behaviour:

  • 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

Possible Cause

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages