test-suite-builder

Generate minimal deterministic test suite plans for Kotlin and Spring applications.

14|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/kbrgnj/kotlin-backend-agent-skills --skill test-suite-builder-kbrgnj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-suite-builder
Source: https://github.com/kbrgnj/kotlin-backend-agent-skills/tree/main/.agents/skills/test-suite-builder
Command: npx skills add https://github.com/kbrgnj/kotlin-backend-agent-skills --skill test-suite-builder-kbrgnj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design layered Kotlin + Spring tests that balance speed, realism, and regression value across unit, slice, and integration levels. Use when adding coverage for business logic, controllers, repositories, security, serialization, or end-to-end workflows, and when generic AI output would otherwise overuse @SpringBootTest, misuse mocks, or ignore MockK and coroutine testing idioms.

Core Features & Use Cases

  • Three-layer strategy: unit tests for domain logic, slice tests for framework boundaries, and integration tests for realistic end-to-end flows.
  • Guidelines & best practices: recommendations for MockK vs Mockito, coroutine testing with runTest, and clear fixture design to reduce duplication.
  • Use Case Coverage: helps validate business rules, HTTP contracts, serialization, and security boundaries with minimal, deterministic tests.

Quick Start

Provide a starter test plan and sample tests for my Kotlin + Spring module using the three-layer strategy.

Frequently Asked Questions about test-suite-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Kotlin Spring tests across unit, slice, and integration levels?

Avoid full @SpringBootTest usage in Kotlin by generating a minimal, deterministic test suite plan that proves behavior with the smallest footprint. Design tests using slice-level boundaries for controllers, services, and repositories instead of loading the full application context unnecessarily.

Does this testing approach support coroutine testing with MockK in Spring?

Yes, the Kotlin Spring testing approach is coroutine-friendly, utilizing runTest for coroutine testing and preferring MockK over Mockito for mocking. It provides clear guidelines for fixture design to reduce duplication and ensure deterministic test execution.

What is the best way to test Spring security and serialization boundaries in Kotlin?

The best way to test Spring security and serialization boundaries in Kotlin is through slice tests that validate HTTP contracts and security boundaries with minimal, deterministic tests. This avoids overusing mocks and ensures realistic end-to-end workflow validation.

How do I generate a starter test plan for my Kotlin Spring module?

Generate a starter test plan for a Kotlin Spring module by requesting a three-layer strategy covering controllers, services, repositories, security, serialization, and workflows. The output provides sample tests and guidelines for MockK, runTest, and fixture design.

When should I not use integration tests for Kotlin Spring applications?

Avoid integration tests for Kotlin Spring applications when unit or slice tests can prove the behavior with a smaller footprint. Reserve integration tests for realistic end-to-end flows, and use slice tests for framework boundaries to prevent unnecessary full-context loading.