How Do We Inherit Test Classes Across Android Library Modules?

前端 未结 1 373
孤独总比滥情好
孤独总比滥情好 2020-12-30 01:54

I have an Android Studio project with two library modules: foo-module and bar-module. Each implements a library, with foo-module defin

相关标签:
1条回答
  • 2020-12-30 02:40

    Due to the fact that all the test classes (unit and instrumentation) are not a part of any module, including aar, they are not available via dependency to that module. I faced to this issue as well and solved it by creating test-module and put all the required classes in it (src/main/java). So, in your case you can move AbstractTests in this module and use this module as a androidTestCompile dependency.

    0 讨论(0)
提交回复
热议问题