gradle-testsets-plugin icon indicating copy to clipboard operation
gradle-testsets-plugin copied to clipboard

compileIntegrationTestJava can not find class in src/test/java

Open donahchoo opened this issue 1 year ago • 1 comments

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.

donahchoo avatar Oct 12 '22 01:10 donahchoo

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

tiagodocouto avatar Jan 13 '23 10:01 tiagodocouto