Is there any way to have `commonTest` in one modul...
# multiplatform
j
Is there any way to have
commonTest
in one module depend on
commonTest
in another?
j
No, the official solution for this outside KMP is text fixtures but they do not work on KMP so you need to create a normal module, write the code in common main and share it on both modules
j
yeah, trying something a bit like that but that common module needs then in turn to depend on say feature modules where the interfaces that the fakes implements are defined
r
You can have a module
:tests
with tests written in the main sources. Then the main sources of
:tests
can depend on
:feature
and the test sources of
:feature
can depend on
:tests
.
👍 1