What problem does it solve? Writing reliable Kotlin tests requires choosing the right spec style, mocking strategy, and coroutine dispatcher, and mistakes lead to flaky or meaningless tests. This Skill provides a structured workflow for generating, fixing, and improving Kotlin test suites with Kotest and MockK. ## Core Features & Use Cases - Test Generation: Produces Kotest tests (FunSpec, DescribeSpec, StringSpec) with MockK mocking, property-based testing, and data-driven cases following a five-phase execution protocol. - Coroutine & Android Testing: Applies runTest with StandardTestDispatcher for suspend functions and ActivityScenario with Espresso for Android UI tests. - Failure Diagnosis & Coverage: Diagnoses flaky tests, configures JaCoCo coverage reports, PIT mutation testing, and GitHub Actions CI integration. - Use Case: Ask the agent to write tests for a Kotlin service class with a repository dependency, and it generates a FunSpec with MockK mocks, boundary cases, and the Gradle commands to run them. ## Quick Start Ask the agent to write Kotest unit tests with MockK mocks for a specific Kotlin class in your project.