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

How can I use 'integrationTestImplementation` when naming the source set 'integration-test' #116

Open xetra11 opened 3 years ago

xetra11 commented 3 years ago

I created the integration test sourceset like this:

testSets {
    create("integration-test")
}

using integrationTestImplementation in dependencies therefore is not resolving. Is there a way to make it work?

piefel commented 3 years ago

Why do you want to name the sourceset integration-test? Is it because your source folder has that name? The solution for this case would be (in Kotlin syntax):

testSets {
    "integrationTest" {
        dirName = "integration-test"
    }
}