I want to run a Quarkus integration test in order to verify OpenAPI yaml generated from the source code. According to the documentation, it should be possible to do it using the @QuarkusIntegrationTest
annotation. However the it is not explained how to mek it work.
As a test annotated with @QuarkusIntegrationTest tests the result of the build, it should be run as part of the integration test suite - i.e. via the maven-failsafe-plugin if using Maven or an additional task if using Gradle.
Unfortunately, it is not clear what this means and how to configure that "additional task" in Gradle.
Question: How to run a Quarkus Integration Test in a Gradle project?
If your build.gradle
file contains
plugins {
id 'io.quarkus'
}
then you should be able to run the @QuarkusIntegrationTest
tests with
.\gradlew quarkusIntTest
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With