You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using IntelliJ to execute a single Quarkus integration test (for example, by clicking on the run icon next to the test code and choosing ‘run’ or ‘debug’) causes other tests to run in a Gradle project. This is because quarkusIntTest depends on test and the --test command line option used by IntelliJ to isolate the test is not propagated to that dependency.
Expected behavior
Running a single test should only execute that test.
Actual behavior
Other tests (those run by the test Gradle task) are also run.
Would one of you be willing to contribute a fix for the Gradle plugin?
@gsmet I just opened a PR for this. It simply removes the dependency on the test task, because that is why the tests are running unexpectedly.
Arguably, the quarkusIntTestshould have a dependency on the Gradle lifecycle task check, so that Gradle users may run both the test and quarkusIntTest tasks by simply executing check. I did not make this change, but am I happy to include it.
Describe the bug
Using IntelliJ to execute a single Quarkus integration test (for example, by clicking on the run icon next to the test code and choosing ‘run’ or ‘debug’) causes other tests to run in a Gradle project. This is because
quarkusIntTest
depends ontest
and the--test
command line option used by IntelliJ to isolate the test is not propagated to that dependency.Expected behavior
Running a single test should only execute that test.
Actual behavior
Other tests (those run by the
test
Gradle task) are also run.How to Reproduce?
Reproducer: quarkus-reproducer.zip
Steps to reproduce
GreetingResourceIT.java
click the run icon that appears next to the class declaration, then choosequarkusIntTest
and then ‘run’.GreetingResourceTest
is also run.Note that modifying the run configuration to add
-x test
to the command line will lead to the correct behaviour.Output of
uname -a
orver
Darwin Rods-MacBook-Pro.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:23 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6031 arm64
Output of
java -version
openjdk version "21.0.4" 2024-07-16 OpenJDK Runtime Environment Homebrew (build 21.0.4) OpenJDK 64-Bit Server VM Homebrew (build 21.0.4, mixed mode, sharing)
Quarkus version or git rev
3.16.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.9
Additional information
No response
The text was updated successfully, but these errors were encountered: