一键导入
stack-kotlin-testing
Kotlin testing standards — Kotest, Mockk, JUnit 5
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Kotlin testing standards — Kotest, Mockk, JUnit 5
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate repository wiki pages mapping architecture, specs, and status. Trigger: orchestrator launches sdd-document.
Shared SDD references for installed skills. Not invokable.
Read-only generalist screening contract for selective 4R review.
Read-only targeted correction validator for a bounded review lineage.
Write SDD delta specs with requirements and scenarios. Trigger: orchestrator launches spec work for a change.
Create pull requests with branch, validation, and publication checks. Trigger: creating, opening, or preparing PRs for review.
| name | stack-kotlin-testing |
| description | Kotlin testing standards — Kotest, Mockk, JUnit 5 |
| license | Apache-2.0 |
| metadata | {"author":"manuel-retamozo-garcia","version":"1.0"} |
| capabilities | ["kotlin"] |
Comprehensive Kotlin testing patterns for writing reliable, maintainable tests following TDD methodology with Kotest and MockK.
StringSpec for simple, FunSpec for JUnit-like, BehaviorSpec for BDD) consistently across files.coEvery / coVerify for suspend functions. Clear mocks in beforeTest.runTest. For testing time-based flows, use StandardTestDispatcher and advance virtual time with advanceTimeBy or advanceUntilIdle.For full code examples, step-by-step TDD walkthroughs, custom matchers, arg captors, flow testing, property-based setups, and Ktor route testing, refer to: