What problem does it solve?
It helps you write reliable Kotlin tests that prevent regressions and catch bugs early by standardizing TDD workflows and common testing techniques.
Core Features & Use Cases
- Kotest spec patterns: Use the right spec style (StringSpec/FunSpec/BehaviorSpec/DescribeSpec) for clear, maintainable test organization.
- MockK for isolation: Mock regular and suspend functions, capture arguments, and verify interactions with coroutine-aware APIs.
- Coroutine-safe testing: Test suspend functions, Flows, and timing with
runTest, StandardTestDispatcher, and virtual time controls.
- Property-based testing: Validate invariants across wide input spaces using Kotest property testing to reduce edge-case risk.
- Kover coverage enforcement: Configure and verify minimum coverage (e.g., 80%+) to keep test suites meaningful and CI-friendly.
- TDD workflow support: Run the RED-GREEN-REFACTOR cycle to drive implementation from failing tests.
Quick Start
Use the kotlin-testing skill to set up and execute a TDD cycle for a new Kotlin feature using Kotest specs, MockK mocks (including coroutine ones), and Kover coverage checks.