springboot-tdd - Spring Boot Test-Driven Development Guide
Test-driven development guidance for Spring Boot services using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo.
Tags
Updated: 2026-09-13Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write unit tests with Mockito
- Write web layer tests with MockMvc
- Write integration tests with SpringBootTest
- Write persistence tests with DataJpaTest
- Configure Testcontainers for integration testing
- Enforce coverage goals with JaCoCo
- Run CI build and test commands
Inputs
- Spring Boot source code
- Feature specifications
- Bug descriptions
Outputs
- Unit and integration test files
- JaCoCo test coverage reports
- Test execution results
Requirements
- Java Development Kit
- Spring Boot Framework
- JUnit 5
- Mockito
- MockMvc
- Testcontainers
- JaCoCo
- Maven or Gradle build tool
