Hi!
I have a kotlin multiplatform library project. I want to add a compose multiplatform module to test the library. Is it possible? If yes, is there any guide/example for it?
Thanks!
a
Anders Carlsen
12/11/2023, 12:43 PM
Wouldn’t that be the same as testing in the same module, just put your test in another module and depend on the code in the library module? I think this should work like with any other java/kotlin module, just depend on kotlin test and lib like so in your test module:
Copy code
val commonMain by getting {
dependencies {
implementation(project("yourLibrary"))
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}