-
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
QuarkusIntegrationTest cannot be run with failsafe in JVM mode #18537
Comments
/cc @evanchooly, @geoand |
Thanks for reporting |
The problem is caused by the use of <junit.jupiter.testinstance.lifecycle.default>per_class</junit.jupiter.testinstance.lifecycle.default> I'll have a fix soon |
It seems like there is some kind of bug in either failsafe or JUnit 5 that prevents It throws some obscure NPE without a stacktrace when I apply my (very simple) fix to the Quarkus code. @stuartwdouglas does that ring any bells? |
Could this fix also help running test cases in IntelliJ? I am seeing the same bean error there, too. |
Are they QuarkusIntegrationTests that you are having trouble with? If so then yes. |
You can try building Quarkus from source to make sure |
Yes, in IntelliJ they result in the same bean resolution issue, even though there is no system property defined to trigger the per_class lifecycle. |
Fixes quarkusio#18537 (cherry picked from commit 1067329)
Describe the bug
When trying to use failsafe to run a
@QuarkusIntegrationTest
in JVM mode (outside thenative
profile), test executions fails.Expected behavior
As documented here, QuarkusIntegrationTest can be run with failsafe.
Actual behavior
Test execution fails with the following error message,
GreetingResourceTestIT
being the test class annotated with@QuarkusIntegrationTest
:To Reproduce
mvn verify
I also tried reproducing this from an even smaller project, but then this bug is not triggered. So there might be an interaction with other extensions configured in this project.
Configuration
included
Environment (please complete the following information):
Output of
uname -a
orver
Output of
java -version
GraalVM version (if different from Java)
not needed
Quarkus version or git rev
2.0.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional context
(Add any other context about the problem here.)
The text was updated successfully, but these errors were encountered: