-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Eclipse IDE - JUnit5 test runner is picked instead of JUnit4 #4284
Comments
Please use the JUnit BOM in your Maven POM to align all versions of JUnit artifacts. It seems like Eclipse is providing the wrong version of Jupiter engine when running tests. Find more details here: https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven-bom See also:
PS: And if Eclipse (and others) would run JUnit on the module path, we would be able to spot the version mismatch right in the stacktrace. |
The project essentially do:
which looks acceptable regarding the user-guide. I upgraded to:
and this issue is fixed! TY
Do you mean Eclipse does something wrong, or my pom.xml does something wrong? |
In the light of this, I'm closing this issue. Ah, Spring Boot is in the mix, too. What you now have looks similar to what the docs state: https://junit.org/junit5/docs/current/user-guide/#running-tests-build-spring-boot
As long as What I was refering to is that you get version information for granted, from explicit modules mounted on the module path. For example:
|
Please assign a milestone to this issue or label it with |
@marcphilipp Let's include |
@sormuras You don't need a milestone if you close it as "not planned". |
I open a maven multi-module project in Eclipse 2024-12 (though it happens since multiple previous Eclipse versions).
My maven projects brings dependencies:
And nothing matching jupiter.
But Eclipse Test Runner is automatically configured on JUnit5, which fails with stacks like:
Steps to reproduce
This happens on a complex private multi-module project. I could try making a simpler repository if necessary.
Context
https://bugs.eclipse.org/bugs/show_bug.cgi?id=578100
Should I look for a specific dependency to understand why JUnit5 kicks-in?
The text was updated successfully, but these errors were encountered: