Guys, in a modular app how can I share a test clas...
# android-architecture
l
Guys, in a modular app how can I share a test class between modules? I have a test class which is common to other tests in the project. I've tried to put this class into a "base" module, but I can't import this class in other test classes from another module.
a
You create a new module (e.g.
common-test
) for that, and then include in the two projects through
testImplementation project('common-test')
and don't forget to put the source files in the main/java folder rather than test/java
👍 2
l
thank you!!
👍 1