Workaround – No tests found with Testrunner JUnit 5

Java 8, Eclipse, JUnit 5 & Gradle

It seems to be a bug in Eclipse and it’is fixed in the Oxgen Release 3 (4.7.3).

But I still have the problem in my Java 8 project. So I did a little trick.
I changed the version for the engine and the launcher back to 5.1.0.

[code]

testCompile group: ‚org.junit.jupiter‘, name: ‚junit-jupiter-engine‘, version: "5.1.0"
testCompile group: ‚org.junit.platform‘, name: ‚junit-platform-launcher‘, version: "5.1.0"

[/code]

Now, all the tests run in Eclipse too 😉

Links

https://gist.github.com/claudioaltamura/b4350d1ffa0f5597f8c1f4d019938e03

https://junit.org/junit5/docs/current/user-guide/

https://bugs.eclipse.org/bugs/show_bug.cgi?id=525948

Consent Management Platform von Real Cookie Banner