Skip to content

Gradle does not include test resurces when running tests #9214

@tobad357

Description

@tobad357

Describe the bug
When running tests it seems like the Quarkus Classloader does not include build/resources/test/ in the classpath but it does include

build/classes/java/test/
build/classes/java/main/
build/resources/main/

Expected behavior
Expected behaviour would be to include build/resources/test/ when running unit tests

Actual behavior
See above

To Reproduce
Steps to reproduce the behavior:

  1. Setup a project with a properties file in test/resources
  2. Try running a unit test that uses that properties file

Environment (please complete the following information):

  • Output of uname -a or ver: 19.4.0 Darwin Kernel Version 19.4.0
  • Output of java -version: OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)
  • GraalVM version (if different from Java):
  • Quarkus version or git rev: 1.4.2.FINAL
  • Build tool (ie. output of mvnw --version or gradlew --version): Gradle 6.4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions