You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Move UI tests to commonMain for multiplatform support
- Relocate UI test case files and screen objects from the `test-jvm` module to the `test/commonMain` source set.
- Update test cases to use `kotlinx.coroutines.test.TestResult` as the return type instead of `Unit`.
- Replace JVM-specific dependencies and utilities with their Kotlin Multiplatform equivalents:
- `org.junit.Assert.assertEquals` is replaced with `kotlin.test.assertEquals`.
- `org.koin.java.KoinJavaComponent` is replaced with `org.koin.mp.KoinPlatform`.
- `java.util.UUID` is replaced with `kotlin.uuid.Uuid`.
- `kotlinx.coroutines.runBlocking` is replaced with a custom `runBlockingAll` utility for multiplatform compatibility.
- `Thread.sleep` is replaced with `kotlinx.coroutines.delay`.
- Add necessary dependencies to the `ui/test/build.gradle.kts` file for the `commonMain` source set, including `koin-core`, `turbine`, and project modules.
- Annotate test screen classes with `@JvmInline` for performance optimization.
0 commit comments