Multiplatform Testing in Kotlin
summary
KotlinTest 4.0 brings a single framework to compile common tests into both JVM bytecode and JavaScript artifacts, running Gradle’s test tasks per target and compiling one common source file into two runtime tests. Examples show platform-specific implementations for validateEmail and validateSSN, coroutines handled via JS promises so suspend function support works on both targets, property tests run default 1000 runs with random Unicode and edge cases, and the library exposes 200 assertions plus data-driven and collection inspectors.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:27Multiplatform Kotlin
- 1:36Why multiplatform?
- 2:50Multiplatform: Gradle Build
- 3:39Multiplatform Testing: Kotin Dot Test Library
- 4:48Multiplatform Testing: Gradle Support
- 5:25KotlinTest to the Rescue
- 8:05Validation Project: Javascript Implementation
- 8:18Validation Project: JVM Implementation
- 8:44Validation Project: Tests
- 9:31Validation Project: Gradle Output
- 10:07Validation Project: Failed Output
- 10:29Property Testing
- 12:11Coroutine Testing
- 13:27Questions?
related talks
38mMultiplatfom projects with Kotlin
01h 07mDevelop Multiplatform Projects in Kotlin
39mAn Overview of Multiplatform Kotlin
33mUsing Kotlin for JS Client and JVM Server
38mA Kotlink between worlds
35mIntro to Kotlin Multiplatform
34mKotlin Multiplatform: code sharing without compromise
36mExploring Kotlin Multiplatform
