Skip to content

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

@donahchoo

Description

@donahchoo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions