Hi all, what do you recommend as a good testing framework for a kmm mobile app
j
James Black
04/20/2022, 2:55 AM
I think it depends on where you are testing. For the Kotlin part, just use Kotlin test, as shown in your CommonTest folder.
Copy code
import kotlin.test.Test
import kotlin.test.assertTrue
class CommonGreetingTest {
@Test
fun testExample() {
assertTrue(Greeting().greeting().contains("Hello"), "Check 'Hello' is mentioned")
}
}
For the client side iOS and Android have their own testing tools and that depends on how you want to test. For iOS I just use XCTest. For Android I tend to just use junit and I don't worry about testing the UI part on either, tbh.