Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
donahchoo opened this issue Oct 12, 2022 · 1 comment
Open

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

donahchoo opened this issue Oct 12, 2022 · 1 comment

Comments

@donahchoo
Copy link

donahchoo commented Oct 12, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants