Hello all, we have some test classes defined in KM...
# multiplatform
s
Hello all, we have some test classes defined in KMM module 1 (commonTest). We have another KMM module 2 that depends on module 1 where we would like to re-use test classes from module1:commonTest in module2:commonTest. Is that possible? We tried adding dependency in the sourceSets but no luck.
m
nope, you need to create a new KMP module, let’s call it
test
and you need to use this module in
module1
and
module2
also the classes that you want to use in module1 and module2 should be located in
commonMain
of
test
module
s
Thank you for the response. Yes that's the same workaround I have been suggested on other channels. Will proceed accordingly.