unbroken-dome / gradle-testsets-plugin

A plugin for the Gradle build system that allows specifying test sets (like integration or acceptance tests).
MIT License
230 stars 50 forks source link

Resources in the wrong priority #120

Closed osbornk closed 3 years ago

osbornk commented 3 years ago

I have this directory structure:

src
   - itTest
     - kotlin
     - resources
       -- application.yaml
   - itTest
     - kotlin
     - resources
       -- application.yaml
   - main
     - kotlin
     - resources
       -- application.yaml
build.gradle.kts

testSets {
    create("itTest")
}

If I run a normal unit test, the values in src/test/resources/application.yaml will override the values in src/main/resources/applicatiion.yaml.

If I run a test from itTest, the values in src/main/resources/application.yaml will override the values in src/itTest/resources/applicatiion.yaml. If the value only exists in itTest, then they can be read fine. So, the itTest resources file can be read, but the order is wrong. So, I can't override any values.

Is there something I am missing? Thanks.

I am using 4.0.0 of the plugin.

osbornk commented 3 years ago

Actually, I think this is a Quarkus issue.