test-suite-builder

Design layered Kotlin and Spring tests with structured output contracts.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams design efficient, regression-safe Kotlin + Spring test suites that prove behavior with the lightest effective tests instead of re-implementing logic.

Core Features & Use Cases

  • Three-Layer Strategy: unit tests for domain logic, slice tests for framework boundaries, and integration tests when a realistic graph or infrastructure matters.
  • Kotlin Testing Rules: prefer JUnit 5, MockK, readable backtick test names when appropriate, use runTest for coroutine-heavy code, and build reusable fixtures or object mothers.
  • Expert Heuristics & Guardrails: prioritize the smallest tests that would have failed before the change, treat test code as production-grade, and keep tests deterministic with explicit setup.
  • Output Contract: provide a structured plan and artifacts including a test plan, generated tests, test data support, coverage gaps, and verification steps.

Quick Start

Apply this skill to design layered Kotlin + Spring tests that balance speed, realism, and regression value.

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 Boot tests across unit, slice, and integration layers?

Layered Kotlin Spring Boot tests separate domain logic into unit tests, framework boundaries into slice tests, and infrastructure into integration tests. This strategy balances execution speed, realism, and regression value without re-implementing logic.

What is the best way to write deterministic unit tests for Kotlin coroutines?

Deterministic Kotlin coroutine unit tests use JUnit 5, MockK for mocking, and the runTest builder to control virtual time. Reusable fixtures or object mothers ensure explicit setup and keep test code production-grade.

When should I use slice tests instead of integration tests in Spring Boot?

Use Spring Boot slice tests to isolate framework boundaries like web or persistence layers without starting the full context. Choose integration tests only when a realistic dependency graph or actual infrastructure is required to validate behavior.

Can I use MockK with JUnit 5 for Spring Boot slice tests?

Yes, MockK integrates seamlessly with JUnit 5 for Spring Boot slice tests. This combination allows you to mock dependencies at framework boundaries while keeping slice tests fast, readable, and focused on specific layers.

How do I generate a test plan and coverage gaps for a Kotlin Spring project?

Generate a Kotlin Spring test plan by defining a structured output contract that includes test strategies, generated test artifacts, data support fixtures, and explicit coverage gaps. This ensures the lightest effective tests are prioritized.

Why do my Spring Boot integration tests fail when testing Kotlin domain logic?

Spring Boot integration tests fail for Kotlin domain logic when they are too heavy and re-implement logic instead of proving behavior. Prioritize the smallest unit tests that would have failed before the change to maintain speed and regression value.