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
Ahmed Ibrahim
02/27/2020, 12:04 PM
You create a new module (e.g.
common-test
) for that, and then include in the two projects through
testImplementation project('common-test')
Ahmed Ibrahim
02/27/2020, 12:05 PM
and don't forget to put the source files in the main/java folder rather than test/java