-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus 2.4.1.Final - Continuous Testing - engine.JupiterTestEngine not a subtype #21226
Comments
/cc @stuartwdouglas |
@mettwm it would help if you could prepare a small reproducer. |
|
I'm closing this one given we don't have any reproducer allowing us to dig what's going on. If you end up having a reproducer, please reopen (or open a new issue with the reproducer attached). Thanks. |
@gsmet I encountered the same issue and I think I managed to create a minimal reproducer here: https://github.com/bnazare/quarkus-21226-reproducer To make a long story short, it seems the issue occurs when you have a quarkus module in a multi-module project and said quarkus module depends on a second module which in turn depends on As for the reproducer, it's a very basic multi-module build with a quarkus module taken directly from https://code.quarkus.io/ and a second module with just an empty class and a dependency on To reproduce the issue do the following:
You can make the issue go away by doing the following:
In case it's relevant here's the output from
I got similar result with Maven 3.8.4. |
@geoand could you have a look at the reproducer? ^ |
I'll try and have a look on Monday |
Looks like Stuart already took care of it :) |
Fixes quarkusio#21226 (cherry picked from commit 7066074)
Describe the bug
Hi there,
I have started to play with 2.4.1.Final quarkus to convert my application with tests originally for 1.13.6.Final to see if I see I hit the wall somewhere :)
The application was working as expected yet I got following error when pressing [r] to run my tests in quarkus:dev mode
2021-11-05 12:54:47,047 ERROR [io.qua.test] (Test runner thread) Internal error running tests: java.util.ServiceConfigurationError: org.junit.platform.engine.TestEngine: org.junit.jupiter.engine.JupiterTestEngine not a subtype at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:589) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1237) at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265) at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300) at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385) at java.base/java.lang.Iterable.forEach(Iterable.java:74) at org.junit.platform.launcher.core.LauncherFactory.collectTestEngines(LauncherFactory.java:145) at org.junit.platform.launcher.core.LauncherFactory.createDefaultLauncher(LauncherFactory.java:131) at org.junit.platform.launcher.core.LauncherFactory.create(LauncherFactory.java:125) at io.quarkus.deployment.dev.testing.JunitTestRunner.prepare(JunitTestRunner.java:146) at io.quarkus.deployment.dev.testing.ModuleTestRunner.prepare(ModuleTestRunner.java:83) at io.quarkus.deployment.dev.testing.TestSupport.runInternal(TestSupport.java:335) at io.quarkus.deployment.dev.testing.TestSupport$2.run(TestSupport.java:294) at java.base/java.lang.Thread.run(Thread.java:834)
here is the part of the pom.xml
`
`
So, it was using quarkus-junit5 & quarkus-junit5-mockito and java was
$ java --version java 11.0.12 2021-07-20 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode)
By the way mvn clean compile test ran all tests successfully.
Cheers.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
java 11.0.12 2021-07-20 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: