This skill provides a comprehensive framework for Test-Driven Development (TDD) within Spring Boot environments, leveraging modern tools like JUnit 5, Mockito, and Testcontainers. It guides users through the Red-Green-Refactor cycle, enforcing a target of 80%+ code coverage through unit, web-layer, and integration testing patterns. By integrating best practices for MockMvc, DataJpaTest, and AssertJ, this skill helps developers build robust backend services with automated validation at every layer of the architecture, from persistence to the web controller.
主要功能
01Standardized assertions using AssertJ and JsonPath
02Automated Red-Green-Refactor TDD workflow guidance
030 GitHub stars
04Code coverage enforcement and reporting via JaCoCo
05Containerized database testing using Testcontainers
06Multi-layer testing patterns for Unit, Web, and Persistence layers