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
Since 3.22 when including test fixtures from a library with testImplementation(testFixtures(project(":some-library"))), also regular code from the library is included in the tests besides the test fixtures.
This leads to suprising behaviour such as @Startup methods from the library being executed in tests, but not in dev mode.
Expected behavior
Including test fixtures with testImplementation(testFixtures(project(":some-library"))) only includes test fixtures of the library
Actual behavior
Including test fixtures with testImplementation(testFixtures(project(":some-library"))) includes test fixtures and regular code of the library
openjdk version "21.0.2" 2024-01-16 OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30) OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
Quarkus version or git rev
3.22.3
Build tool (ie. output of mvnw --version or gradlew --version)
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Since 3.22 when including test fixtures from a library with
testImplementation(testFixtures(project(":some-library")))
, also regular code from the library is included in the tests besides the test fixtures.This leads to suprising behaviour such as
@Startup
methods from the library being executed in tests, but not in dev mode.Expected behavior
Including test fixtures with
testImplementation(testFixtures(project(":some-library")))
only includes test fixtures of the libraryActual behavior
Including test fixtures with
testImplementation(testFixtures(project(":some-library")))
includes test fixtures and regular code of the libraryHow to Reproduce?
https://github.com/ls-bit/quarkus-issue-48048
./gradlew module-app:test
failsOutput of
uname -a
orver
Microsoft Windows [Version 10.0.26100.3775]
Output of
java -version
openjdk version "21.0.2" 2024-01-16 OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30) OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
Quarkus version or git rev
3.22.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.13
Additional information
Probably related to https://quarkus.io/blog/test-classloading-rewrite/
The text was updated successfully, but these errors were encountered: