What problem does it solve?
Ensures Spring Boot services are developed and refactored safely by prescribing a test-first workflow that produces fast, deterministic unit and integration tests and reduces regressions while enforcing coverage goals.
Core Features & Use Cases
- Unit Testing: Guidance for JUnit 5 and Mockito patterns, Arrange-Act-Assert, parameterized tests, and test data builders for isolated service logic.
- Web Layer & Integration: MockMvc guidance for controller tests and SpringBootTest patterns with Testcontainers to validate real database interactions and full-stack behavior.
- Persistence & CI: DataJpaTest patterns, Testcontainers configuration via DynamicPropertySource, and JaCoCo Maven integration to enforce 80%+ coverage in CI pipelines.
- Use Case: When adding a new REST endpoint or refactoring data access, write failing-first tests, implement the minimal code to pass, and enforce coverage before merge.
Quick Start
Create failing-first JUnit 5 tests for a new Spring Boot REST endpoint, run unit and Testcontainers-backed integration tests, and confirm JaCoCo reports at least 80% coverage.