What problem does it solve?
This Skill helps you write consistent, trustworthy Kotlin tests by standardizing common testing patterns and coroutine-friendly practices, so you avoid flaky or misleading results.
Core Features & Use Cases
- JUnit 5 Fundamentals: Use clear test naming and assertions with @Test and @DisplayName for readable, maintainable suites.
- Parameterized & Table-Driven Tests: Validate many inputs efficiently using @ParameterizedTest with @CsvSource/@MethodSource and Kotlin data-driven loops.
- Coroutine Testing with runTest: Test suspending logic correctly using kotlinx-coroutines-test utilities and avoiding runBlocking.
- MockK for Stubs and Verification: Use every, coEvery, verify, and coVerify to test both regular and suspending interactions.
Quick Start
Use the kotlin-testing skill to design a JUnit 5 or Kotest test suite for your Kotlin service, including coroutine tests using runTest.