Test Fixtures with Android library modules

I am trying to figure out a way to use the new java-test-fixtures plugin with Android library modules.

For example, I have two modules, A and B, which are both Android library modules. B depends on A. I would also like A to use the java-test-fixtures plugin and contain some common stuff used by the unit tests for both modules. B would depend on the test fixtures of A - testImplementation(testFixtures(project(":A"))). This setup works fine for plain Java library modules of course, but I haven’t figured out any way to make it work for Android library modules.

Does anyone know if there’s a way to make this work, or if support for using java-test-fixtures with Android library modules is planned for the future?

5 Likes

Any updates on this?

No replies to this at all ? Shall we assume it’s not possible to use test fixtures in android library modules then ?