kmm-testing
CommunityStandardize KMM tests for JVM and iOS.
AuthordimitriRemoiville
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Streamlines the creation of robust, cross-platform tests for the Kotlin Multiplatform module by providing reusable patterns for commonTest, androidUnitTest, and iosTest, including HTTP mocking with Ktor MockEngine.
Core Features & Use Cases
- Cross-platform testing patterns: guidance for commonTest, androidUnitTest, and iosTest across JVM and Native targets.
- ViewModel and Use Case testing: sample patterns for testing UseCases and ViewModels with coroutines, including setMain dispatcher.
- HTTP mocking with MockEngine: guidance on using Ktor MockEngine for network-reliant tests, plus avoiding MockK in commonTest.
- Best practices: avoid thread sleep, use runTest, and deterministic testing with injected clocks.
Quick Start
Create a commonTest baseline using kotlin.test and kotlinx-coroutines-test, then adapt tests for Android and iOS targets.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: kmm-testing Download link: https://github.com/dimitriRemoiville/cc-mobile/archive/main.zip#kmm-testing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.