kotlin-tdd
Installation
SKILL.md
STARTER_CHARACTER = 🧪
Kotlin TDD approach built on three pillars: Test Setup, Fakes, and Testing Through The Domain (TTTD).
Test qualities to aim for
- Predictable (not flaky)
- Readable
- Easy to write
- Maintainable (resistant to irrelevant changes)
- Fast (all in-memory)
Three pillars
1. Test Setup
Extension functions on companion objects create test data with sensible defaults.
Related skills
More from anderssv/the-example
kotlin-context-di
Manual dependency injection using SystemContext (production) and TestContext (test doubles) patterns for Kotlin. Use when structuring service dependencies, wiring application components, or creating test contexts without DI frameworks.
15kotlin-sum-types
Parse, don't validate - using sealed classes for type-safe validation and state representation. Model valid/invalid states explicitly, validate at boundaries, operate on valid types internally.
13