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

compileIntegrationTestJava can not find class in src/test/java #128

Open donahchoo opened 2 years ago

donahchoo commented 2 years ago

I'm trying to share code between src/test/java and src/integrationTest/java. I can't figure out how to set this up when using Kotlin. When I was using groovy it just worked...

testSets {
    create("integrationTest") {
        extendsFrom("unitTest")
    }
    tasks["check"].dependsOn("integrationTest")
    tasks["integrationTest"].mustRunAfter("test")

}

My integration test classes that use class from src/test/java will fail to compile because they can't find the symbols. Any suggestions? Just to clarify, this is happen in a subproject of a multi-project gradle build.

tiagodocouto commented 1 year ago

sorry, it has been a long time I know hahahaa I am facing the same problem got any solutions for that?