I am using gradle 8.7 and a simple SpringBoot project with only one module.
If I use implementation project() it does not seem to do anything and I get no classpath for integration tests?
I ended up having to do this:
testing {
suites {
configureEach {
useJUnitJupiter()
}
integrationTest(JvmTestSuite) {
testType = TestSuiteType.INTEGRATION_TEST
dependencies {
// implementation project()
implementation(sourceSets.main.runtimeClasspath)
implementation(sourceSets.test.runtimeClasspath)
}
sources {
java.srcDirs = ['src/integrationTest/java']
}
targets {
all {
testTask.configure {
shouldRunAfter(test)
finalizedBy jacocoTestReport
}
}
}
}
}
}
Is this expected? What am I doing wrong?
many thanks
David