BigHugger
sk Skill · affaan-m

kotlin-testing

Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices. Use when writing Kotlin tests with Kotest or MockK, or testing coroutines and checking coverage.

installs 8w
1,603
30-day movement
starts with the next reading
Related entries
5
Connections
0
yamlkotlinbashJavaScript

This is a SKILL.md agent skill that gives an AI coding agent guidance on Kotlin testing patterns, covering Kotest specs and matchers, MockK mocking, coroutine testing, property-based testing, data-driven testing, and Kover coverage. It follows a TDD workflow and is organised into when-to-use, workflow, examples, reference, and rules sections with runnable code examples.

Reach for it when your agent needs to write or refactor Kotlin tests so it follows idiomatic Kotest, MockK, and TDD practices instead of guessing.

Use it to

  • Write Kotest specs in StringSpec, FunSpec, BehaviorSpec, or DescribeSpec styles
  • Mock suspend functions and coroutines with MockK
  • Test Flows and suspend functions using runTest and TestDispatcher
  • Add property-based and data-driven tests
  • Configure and run Kover coverage in Gradle

For Kotlin developers using AI coding agents for testing

Host repository
affaan-m/ECC
Installs, lifetime
2,900
Installs, 8 weeks
1,603
Host stars
261k
Host language
JavaScript
topicskotlinkotestmockkcoroutinesproperty-based-testingkover