
Description
spring-boot-test-patterns is an agent skill that gives testing guidance for Spring Boot applications. It covers unit, integration, slice and container-based tests, using JUnit 5, Mockito, Testcontainers and slice testing. It helps an agent choose the right kind of test for each job: unit tests for services or repositories with mocked dependencies, integration tests against real databases through Testcontainers, and tests of REST APIs with @WebMvcTest or MockMvc. 5 and later, the skill explains how to configure @ServiceConnection, so that Spring manages the containers a test needs. A quick reference section summarises the common annotations and approaches. The aim is to produce test suites that are robust and reasonably fast, by using slice tests where a full context is not needed. sh directory. Its listing shows all three security audits passing. It is most useful for Java developers who want an agent to add or improve tests in an existing Spring Boot project without drifting into patterns that make the suite slow or brittle.…
Highlights
- Unit, integration and slice test guidance
- JUnit 5 and Mockito
- Testcontainers with @ServiceConnection
- @WebMvcTest and MockMvc for REST APIs
- Quick reference for common annotations
Ratings & Reviews
No ratings yet
Be the first to rate spring-boot-test-patterns.
People also visit
spring-boot-test-patterns FAQ
What does the spring-boot-test-patterns skill do?
It gives guidance on writing unit, integration, slice and container-based tests for Spring Boot applications.
How do I install it?
Run npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill spring-boot-test-patterns.
Which tools does it use?
JUnit 5, Mockito, Testcontainers and Spring's slice testing support.
Which Spring Boot version does the container setup need?
The skill describes @ServiceConnection for Spring Boot 3.5 and later.
Does it cover REST API tests?
Yes. It covers testing REST APIs with @WebMvcTest or MockMvc.
Is it safe to install?
Gen Agent Trust Hub: Pass, Socket: Pass and Snyk: Pass.
What are the best spring-boot-test-patterns alternatives?
Popular alternatives to spring-boot-test-patterns include spring-boot-testing, springboot-tdd and springboot-patterns. See all spring-boot-test-patterns alternatives




