Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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, 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?

like image 323
Sasha Shpota Avatar asked Oct 18 '25 19:10

Sasha Shpota


1 Answers

If your build.gradle file contains

plugins {
    id 'io.quarkus'
}

then you should be able to run the @QuarkusIntegrationTest tests with

.\gradlew quarkusIntTest
like image 165
tbsalling Avatar answered Oct 21 '25 08:10

tbsalling



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!