QuarkusTest**Callback not executed when running QuarkusIntegrationTest
See original GitHub issueDescribe the bug
When running a @QuarkusIntegrationTest
the registered QuarkusTest**Callback are not executed.
Setup:
integrationTest
|-src
| |-MyIntegrationTest.java (extends MyQuarkusTest)
|-resources
|-META_INF
|-services
|- io.quarkus.test.junit.callback.QuarkusTestBeforeEachCallback (same as in test)
test
|-src
| |-MyQuarkusTest.java
|-resources
|-META_INF
|-services
|- io.quarkus.test.junit.callback.QuarkusTestBeforeEachCallback
Expected behavior
The test callback should also be executed when running integration tests.
Actual behavior
When running a @QuarkusIntegrationTest
the registered QuarkusTest**Callback are not executed.
How to Reproduce?
No response
Output of uname -a
or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.13.0.Final
Build tool (ie. output of mvnw --version
or gradlew --version
)
No response
Additional information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
Testing Your Application - Quarkus
As a test annotated with @QuarkusIntegrationTest tests the result of the build, it should be run as part of the integration test suite...
Read more >How to run @QuarkusIntegrationTest in a Gradle project?
I want to run a Quarkus integration test in order to verify OpenAPI yaml generated from the source code. According to the documentation, ......
Read more >Testing Quarkus Applications | Baeldung
But when we run our test, it fails. That's because it requires running within the context of a transaction and there is none...
Read more >Chapter 4. Testing the native executable
Tests do not run natively, therefore they cannot link against your application's code like they can when running on the JVM. You can...
Read more >How to Test Quarkus applications - Mastertheboss
We'll cover unit tests that you can run using JUnit Testing ... to apply live changes to your code and re-test it, without...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would you like to look into this @Sgitario ?
It sounds a good idea to me as well, and it’s safer way to introduce this. But I would add this new property as part of the existing
TestConfig
, something likequarkus.test.enable-callbacks-for-integration-tests
.