-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Continuous testing is not picking up custom JUnit extension from same module #24229
Comments
/cc @stuartwdouglas |
/cc @geoand @aloubyansky (FTR) |
Turns out that the "Deployment Class Loader" that is used for discovering the tests does know the |
@aloubyansky @stuartwdouglas any thoughts/hints? |
aloubyansky@a0d8601 appears to fix it. It replaces the current TCCL which is the augment CL with the deployment CL. @stuartwdouglas what do you think about that? |
Interesting! I was thinking about that as well, but after seeing that |
@aloubyansky your change does seem to fix this issue! 👍 |
That approach seems correct, the fact it was not using it must have been an oversight on my part. |
Thanks @stuartwdouglas I'll open a PR then |
Describe the bug
A Junit extension, e.g. a
org.junit.jupiter.api.extension.BeforeAllCallback
, that is registered viasrc/test/resources/META-INF/services/org.junit.jupiter.api.extension.Extension
is not picked up whenmvn quarkus:test
(CT) is run in that module.If CT is run in another module that depends on the module that contains the extension, everything works as expected!
Expected behavior
"local" extension is run
Actual behavior
"local" extension is not run/found
How to Reproduce?
q_ct-junitext.zip
mvn verify
✔️mvn quarkus:test
❌Output of
uname -a
orver
No response
Output of
java -version
17.0.2, vendor: BellSoft
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.3.Final and 2.7.4.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4
Additional information
ℹ️ There is no issue when the extension is registered via
@ExtendWith(...)
!The text was updated successfully, but these errors were encountered: