springboot-tdd
Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.
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
- Spring Boot TDD İş Akışı
- Ne Zaman Kullanılır
- İş Akışı
- Unit Testler (JUnit 5 + Mockito)
- Web Katmanı Testleri (MockMvc)
- Entegrasyon Testleri (SpringBootTest)
- Persistence Testleri (DataJpaTest)
- Testcontainers
80%+ kapsam (unit + integration) ile Spring Boot servisleri için TDD rehberi. Yeni özellikler veya endpoint'ler Bug düzeltmeleri veya refactoring'ler Veri erişim mantığı veya güvenlik kuralları ekleme 1) Önce testleri yazın (başarısız olmalılar) 2) Geçmek için minimal kod uygulayın 3) Testleri yeşil tutarken refactor edin 4) Kapsamı zorlayın (JaCoCo) Desenler: Arrange-Act-Assert Kısmi mock'lardan kaçının; açık stubbing tercih edin Varyantlar için @ParameterizedTest kullanın Production'ı yansıtmak için Postgres/Redis için yeniden kullanılabilir container'lar kullanın JDBC URL'lerini Spring context'e enjekte etmek için @DynamicPropertySource ile bağlayın Maven snippet: Okunabilirlik için AssertJ'yi (assertThat) tercih edin JSON yanıtları için jsonPath kullanın Exception'lar için: assertThatThrownBy(...) Maven: mvn -T 4 test veya mvn verify Gradle: ./gradlew test jacocoTestReport Unutmayın: Testleri hızlı, izole ve deterministik tutun. Uygulama detaylarını değil, davranışı test edin.
- Source repository
- affaan-m/ECC
- Source file
- docs/tr/skills/springboot-tdd/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
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:50.068Z.
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.