Assigned
Status Update
Comments
sa...@google.com <sa...@google.com>
hu...@google.com <hu...@google.com>
mr...@gmail.com <mr...@gmail.com> #2
I tried adding screenshotTestImplementation(libs.androidx.window)
but it didn't fix it.
ni...@hinge.co <ni...@hinge.co> #3
This is likely a duplicate of libs.androidx.window
dependency to implementation
to see if it works?
eu...@gmail.com <eu...@gmail.com> #4
Thanks for the workaround. In my case I also need to extend from testImplementation
.
Not sure if this ticket will cover this as well.
eu...@gmail.com <eu...@gmail.com> #5
Ah, and this workaround fails the check<*>AndroidTestDuplicateClasses
- we use test fixtures also for instrumental tests.
Checking if i can do something with it.
Description
It seems that
testFixtures
source set does not have direct access tomain
dependencies in Android Library modules.In the meantime, JVM library modules have such behavior, so there is no need to duplicate dependency entries in Gradle scripts. This not being the same for Android modules seems counter intuitive - other source sets have free access to already declared dependencies -
test
andandroidTest
sources get them automatically.Sample setup:
android.experimental.enableTestFixturesKotlinSupport=true
ingradle.properties
AGP: 8.5.1 Gradle: 8.9