springboot-tdd
Desarrollo guiado por pruebas para Spring Boot usando JUnit 5, Mockito, MockMvc, Testcontainers y JaCoCo. Usar al agregar funcionalidades, corregir bugs o refactorizar.
Target: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original text
Topics in the source
- Flujo de Trabajo TDD en Spring Boot
- Cuándo Usar
- Flujo de Trabajo
- Pruebas Unitarias (JUnit 5 + Mockito)
- Pruebas de Capa Web (MockMvc)
- Pruebas de Integración (SpringBootTest)
- Pruebas de Persistencia (DataJpaTest)
- Testcontainers
Orientación TDD para servicios Spring Boot con 80%+ de cobertura (unit + integración). Nuevas funcionalidades o endpoints Correcciones de bugs o refactorizaciones Agregar lógica de acceso a datos o reglas de seguridad 1) Escribir pruebas primero (deben fallar) 2) Implementar el código mínimo para que pasen 3) Refactorizar con pruebas en verde 4) Exigir cobertura con JaCoCo Patrones: Arrange-Act-Assert Evitar mocks parciales; preferir stubbing explícito Usar @ParameterizedTest para variantes Usar contenedores reutilizables para Postgres/Redis que reflejen producción Conectar mediante @DynamicPropertySource para inyectar URLs JDBC en el contexto de Spring Fragmento Maven: Preferir AssertJ (assertThat) para legibilidad Para respuestas JSON, usar jsonPath Para excepciones: assertThatThrownBy(...) Maven: mvn -T 4 test o mvn verify Gradle: ./gradlew test jacocoTestReport Recuerda: Mantener las pruebas rápidas, aisladas y deterministas. Probar comportamiento, no detalles de implementación.
- Source repository
- affaan-m/ECC
- Source file
- docs/es/skills/springboot-tdd/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:48.853Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.