-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QuarkusComponentTest in Gradle #35098
Labels
Milestone
Comments
/cc @evanchooly (kotlin), @geoand (kotlin), @glefloch, @quarkusio/devtools |
cc @mkouba |
I see that a Kotlin label has been added, but I have no idea why. I think it's unrelated to Kotlin. |
That is a false positive because there is a |
mkouba
added a commit
to mkouba/quarkus
that referenced
this issue
Aug 2, 2023
mkouba
added a commit
to mkouba/quarkus
that referenced
this issue
Aug 2, 2023
mkouba
added a commit
to mkouba/quarkus
that referenced
this issue
Aug 2, 2023
mkouba
added a commit
to mkouba/quarkus
that referenced
this issue
Aug 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When creating an @QuarkusComponentTest within a Quarkus project that you build with Gradle you get an
IllegalStateException: Invalid test path
.The problem is in QuarkusComponentTestExtension.java. The problem is with this part of the code:
Together with
The code is looking if the path to the class with the testcode contains
target/test-classes
. This is true for Maven builds but not for Gradle builds.Expected behavior
I expect to be able to use @QuarkusComponentTest to write component tests with Gradle als build tool and able to run them without the
IllegalStateException: Invalid test path
.Actual behavior
At the moment every test class that is annotated with @QuarkusComponentTest in a project that you build with Gradle will fail with
IllegalStateException: Invalid test path
.How to Reproduce?
Steps to reproduce:
Output of
uname -a
orver
Darwin Peters-MBP-2.local 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:20 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 arm64
Output of
java -version
java version "17.0.2" 2022-01-18 LTS Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86) Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.2.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)------------------------------------------------------------ Gradle 8.1.1 ------------------------------------------------------------ Build time: 2023-04-21 12:31:26 UTC Revision: 1cf537a851c635c364a4214885f8b9798051175b Kotlin: 1.8.10 Groovy: 3.0.15 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM: 17.0.2 (Oracle Corporation 17.0.2+8-LTS-86) OS: Mac OS X 13.4.1 aarch64
Additional information
No response
The text was updated successfully, but these errors were encountered: