spring-testing

Installation
SKILL.md

Spring Testing

Conventions for testing Spring Boot 3.2+ applications. Covers test slices, MockMvc, WebTestClient, Testcontainers, Spock, reactive testing, and test configuration.

Do NOT Load for general unit testing without Spring context — standard JUnit/Spock practices apply.

Test Pyramid

Level Annotation Context Speed Use For
Unit None No Spring Fast Services, mappers, domain logic
Slice @WebMvcTest, @DataJpaTest, etc. Partial Medium One layer in isolation
Integration @SpringBootTest Full Slow Cross-cutting flows, smoke tests

Default to the narrowest context that covers your test case. Most tests should be unit or slice tests.

Test Slices

@WebMvcTest — Controller Layer

Installs
4
First Seen
Apr 7, 2026
spring-testing — rynr/spring-skills