
Test Suite Builder
- 20 installs
- 295 repo stars
- Updated June 29, 2026
- jetbrains/skills
test-suite-builder creates layered Kotlin Spring test suites.
About
The test-suite-builder skill designs and generates layered Kotlin plus Spring tests balancing speed, realism, and regression value across unit, slice, and integration levels. It prefers MockK over Mockito unless the repo standardizes otherwise, and avoids defaulting to @SpringBootTest when slice or unit tests suffice. Workflow maps components to test layers: pure logic as unit tests, @WebMvcTest or @DataJpaTest slices for framework boundaries, and integration tests only for cross-module wiring. Advanced guidance covers testcontainers usage, security test helpers, and fixture reuse without oversharing state. Output returns test plan table, generated test skeletons, and commands to run targeted suites. Guardrails forbid slow full-context tests for narrow controller or repository changes. Choose the lightest test that proves the behavior. Generate tests that catch regressions instead of reproducing the implementation line by line. Before writing code, classify what needs to be proven:
- Maps features to unit, slice, and integration test layers.
- Prefers MockK and slice tests over full @SpringBootTest.
- Generates test skeletons with realistic fixtures.
- Covers security and repository slice patterns.
- Returns commands to run targeted test suites.
Test Suite Builder by the numbers
- 20 all-time installs (skills.sh)
- +2 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Ranked #1,436 of 2,153 Testing & QA skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
test-suite-builder capabilities & compatibility
- Capabilities
- test layer selection workflow · mockk and slice test preferences
- Use cases
- testing
- IDEs
- intellij
What test-suite-builder says it does
Prefer MockK over Mockito unless the repository already standardizes on something else
npx skills add https://github.com/jetbrains/skills --skill test-suite-builderAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 20 |
|---|---|
| repo stars | ★ 295 |
| Last updated | June 29, 2026 |
| Repository | jetbrains/skills ↗ |
What test layer should I use for this Spring controller change?
Design layered Kotlin Spring tests across unit, slice, and integration levels.
Who is it for?
Kotlin Spring teams adding coverage for new features.
Skip if: Skip for frontend-only UI tests without Spring context.
When should I use this skill?
User adds tests for controllers, services, repositories, or security.
What you get
Test plan with generated unit, slice, or integration tests.
Files
Test Suite Builder
Source mapping: Tier 1 critical skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-14).
Mission
Choose the lightest test that proves the behavior. Generate tests that catch regressions instead of reproducing the implementation line by line.
Start With A Test Strategy
Before writing code, classify what needs to be proven:
- pure business logic
- HTTP contract and validation
- repository query behavior
- serialization behavior
- security rules
- cross-component integration
- database or message-broker integration
Three-Layer Strategy
- Use unit tests for domain logic, calculations, decision tables, and deterministic branching.
- Use slice tests for framework boundaries:
@WebMvcTestorWebTestClientfor HTTP@DataJpaTestfor repositories- focused JSON or security slices when available in the project
- Use
@SpringBootTestand Testcontainers only when a realistic application graph or infrastructure boundary must be proven.
Kotlin Testing Rules
- Prefer JUnit 5.
- Prefer MockK over Mockito unless the repository already standardizes on something else.
- Use readable backtick test names when that matches the project style.
- Use
runTestand the coroutine test toolkit for coroutine-heavy code. - Build reusable fixtures, builders, or object mothers instead of duplicating inline object construction.
What To Cover
- Success path.
- Validation failures.
- Business rule failures.
- Edge cases around nullability, optional fields, empty collections, and duplicates.
- At least one regression-oriented test for the bug or change that motivated the work.
What Not To Do
- Do not default to
@SpringBootTestwhen a slice test or unit test is enough. - Do not write tests that only verify mock interactions and prove nothing observable.
- Do not couple assertions to private implementation details when public behavior is enough.
- Do not use real time, random values, or shared mutable state without control.
Output Contract
Return these sections:
Test plan: which layers to use and why.Generated tests: the concrete test classes or patch plan.Test data support: builders, fixtures, or factories to add.Coverage gaps: important cases still not covered.Verification: commands to run and which tests should fail before the fix.
Framework-Specific Checks
- Match
MockMvcvsWebTestClientto MVC vs WebFlux. - Match Testcontainers setup to the actual database or broker in the repository.
- If serialization or validation is the bug, include a test that proves the wire contract, not only the service logic.
- If transaction behavior matters, add a test that proves rollback or uniqueness behavior in the real persistence layer.
Advanced Testing Nuances
- A transactional test that always rolls back can hide commit-time failures. Use explicit flush or real commit boundaries when unique constraints, triggers, or transaction listeners matter.
- H2 is not a safe stand-in for Postgres or MySQL when dialect, JSON, locking, index use, or transaction semantics matter. Prefer the real engine with Testcontainers for those cases.
@MockBeanis powerful but expensive. Overusing it turns integration tests into slow unit tests with hidden wiring.- Security tests should usually prove both
401and403, not just the happy authorized path. - Async and event-driven flows need deterministic waiting strategies such as controlled schedulers, latches, or Awaitility. Do not scatter sleeps.
- Concurrency and deadlock behavior cannot be proven in a single-threaded rollback test. Use multiple transactions and explicit synchronization when reviewing those cases.
- Reused containers improve speed but require strict state isolation. Do not trade determinism away for a faster green build.
- Use deterministic time and ID providers when business logic depends on clocks or UUIDs.
Expert Heuristics
- If a bug was caused by framework wiring, add at least one test above unit level.
- If a bug was caused by domain branching, do not drag the whole Spring context into the fix.
- When in doubt, choose the smallest test that would have failed before the change.
- Treat test code as production code for readability and maintenance. Fixtures and helpers should reduce noise, not hide behavior.
Guardrails
- Keep tests deterministic.
- Keep setup explicit and local to the scenario.
- Prefer one clear reason for failure per test.
- Do not silently introduce slow infrastructure-heavy tests into fast unit test suites.
Quality Bar
A good run of this skill produces a test suite that is fast where possible and realistic where necessary. A bad run floods the project with context-heavy tests, brittle mocks, and no clear explanation of why each test level exists.
interface:
display_name: "Test Suite Builder"
short_description: "Design layered Kotlin/Spring tests"
default_prompt: "Use $test-suite-builder to design and generate the right mix of unit, slice, and integration tests."
Related skills
FAQ
What does test-suite-builder do?
test-suite-builder creates layered Kotlin Spring test suites.
When should I use test-suite-builder?
User adds tests for controllers, services, repositories, or security.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.