question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QuarkusTest**Callback not executed when running QuarkusIntegrationTest

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Oct 6, 2022

Would you like to look into this @Sgitario ?

1reaction
Sgitariocommented, Oct 6, 2022

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 like quarkus.test.enable-callbacks-for-integration-tests.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found