test-suite-builder

Generate layered Kotlin and Spring test suites with JUnit 5 and MockK.

4|Updated Jun 10, 2026
One-click install
npx skills add https://github.com/mymx2/foreman --skill test-suite-builder-mymx2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-suite-builder
Source: https://github.com/mymx2/foreman/tree/main/.qoder/skills.collected/skills/test-suite-builder
Command: npx skills add https://github.com/mymx2/foreman --skill test-suite-builder-mymx2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the common issue of over-reliance on heavy integration tests and brittle mocks, helping developers create a balanced, efficient, and maintainable test suite that accurately reflects business logic and framework boundaries.

Core Features & Use Cases

  • Layered Strategy: Provides clear guidance on when to use unit tests, slice tests, or full integration tests to maximize speed and reliability.
  • Kotlin/Spring Idioms: Enforces best practices for MockK, coroutine testing, and proper usage of Spring testing annotations.
  • Use Case: When refactoring a complex service, use this skill to determine the minimal set of tests required to verify domain logic without unnecessarily spinning up the entire Spring application context.

Quick Start

Use the test-suite-builder skill to design a testing strategy for the new user authentication service that balances unit tests for logic and slice tests for security.

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 to avoid over-reliance on heavy integration tests?

Structure Kotlin Spring tests by applying a layered strategy using unit tests for domain logic, slice tests for framework boundaries, and full integration tests sparingly. This balances execution speed with realistic regression coverage while avoiding unnecessary application context startup.

When should I use slice tests instead of @SpringBootTest in a Spring application?

Use slice tests instead of @SpringBootTest when verifying specific framework boundaries like HTTP contracts or persistence layers. Slice tests load only the necessary application context components, maximizing test speed and reliability compared to heavy integration tests that spin up the entire Spring context.

How do I test Spring coroutines using MockK and JUnit 5?

Test Spring coroutines using MockK and JUnit 5 by adhering to coroutine testing idioms and MockK mocking best practices. Enforce proper usage of Spring testing annotations to verify business logic accurately while maintaining framework boundaries within your layered test suite.

What is the best way to mock Kotlin dependencies in a Spring Boot test suite?

The best way to mock Kotlin dependencies in a Spring Boot test suite is using MockK alongside JUnit 5. It enforces Kotlin-specific mocking idioms and helps create maintainable tests that accurately reflect business logic without relying on brittle mocks or heavy integration setups.

How do I determine the minimal set of tests required when refactoring a complex Spring service?

Determine the minimal set of tests by categorizing verification into unit tests for domain logic and slice tests for security or persistence layers. This approach verifies the refactored complex service efficiently without unnecessarily spinning up the entire Spring application context.