mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
780 B
780 B
description, globs, alwaysApply
| description | globs | alwaysApply | |||
|---|---|---|---|---|---|
| Kotlin testing extending common rules |
|
false |
Kotlin Testing
This file extends the common testing rule with Kotlin-specific content.
Framework
Use Kotest with spec styles (StringSpec, FunSpec, BehaviorSpec) and MockK for mocking.
Coroutine Testing
Use runTest from kotlinx-coroutines-test:
test("async operation completes") {
runTest {
val result = service.fetchData()
result.shouldNotBeEmpty()
}
}
Coverage
Use Kover for coverage reporting:
./gradlew koverHtmlReport
./gradlew koverVerify
Reference
See skill: kotlin-testing for detailed Kotest patterns, MockK usage, and property-based testing.