New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STS 4.6.0 Eclipse - Springboot 2.2.5 - JUnit5 failing (NoClassDefFoundError) #431
Comments
|
We should discuss with the Eclipse team that works on the JUnit integration what the proposed solution is for projects that do not use the exact same version of JUnit5 than the IDE. I think this is a quite common case and many people will hit this. |
|
(oh, and I moved this issue to the Spring Tools 4 project, just for your notice) |
|
(comment in Pivotal Tracker added by Alex Boyko:) Seems like a problem in Buildship Gradle plugin... If I try the same Maven project with the same dependencies created by Initializr it launches fine and has 5.5.2 JUnit on the classpath... Therefore, seems like something is off with the Eclipse project produced by Buildship Gradle... |
|
(comment in Pivotal Tracker added by Alex Boyko:) Not sure what's wrong... Probably has to do with the classpath calculated in the launch config by the JDT based on the info in the project... Think this is something to figure out on the Buildship Gradle side hence i raised: |
|
Another solution is, adding @martinlippert |
- do now provide a test PDS inside sechub-integration test project which is automatically started and stopped in task integration test - also fixes problem with eclipse-2020-06 by adding dependency to correct junit-platform runner library see spring-projects/sts4#431 - removed some unnecessary profiles - integration test and dev profile do now work "out-of-the-Box"
|
Instead of Also note that this is only a forward compatibility issue (the tool uses a newer version than the build). I confirmed with the JUnit team that backward compatibility (the build uses a newer version than the tool) should be guaranteed. Some more details: eclipse/buildship#980 (comment) |
|
我使用使用相同的Eclipse,在一台电脑上可以执行 Junit5 ,另一台电脑上就报错,很奇怪。 junit-jupiter 插件版本是 5.6.0 |
|
I am closing this one here as a duplicate of the mentioned buildship issue: eclipse/buildship#980. Please feel free to comment if you think we need to keep this open and investigate this further from the Spring Tools side and we can re-open the issue for that, if necessary. |
Hello,
Launching tests with JUnit5 fails for springboot applications (2.2.5).
Reason:
Eclipse 4.15 ships with JUnit5 5.6.0
Springboot 2.2.5 uses JUnit5 5.5.2 (https://github.com/spring-projects/spring-boot/blob/2.2.x/spring-boot-project/spring-boot-dependencies/pom.xml)
Result:
Solution/Workaround:
adding/updating Junit5 version to 5.6.0 in build.gradle:
I think that a warning on the download page would be nice until springboot updates their dependencies to JUnit5 5.6.0.
The text was updated successfully, but these errors were encountered: