Testing Spring Boot Applications Demystified
summary
Practical roadmap for testing Spring Boot apps that names actual tools and measurable wins: use Spring Boot Starter Test with JUnit 6, Mockito, AssertJ and utilities like JSONPath, XMLUnit and Awaitility; prefer slice tests (e.g. @WebMvcTest + MockMvc) to catch path mapping, bean validation and security issues; use Testcontainers (Postgres + Ryuk) for realistic integration tests; enable context caching to cut builds (example: 26 → 12 minutes); add Spring Test Profiler and PIT mutation testing to find weak tests; Spring Boot 4 adds context pausing and improved test clients.
AI-written summary · about
chapters (10)
- 0:00Welcome
- 5:24Automated testing in AI era
- 10:04Unit testing with Spring Boot
- 21:27Slice testing web/persistence
- 29:29Integration testing challenges
- 31:18Testcontainers for external infra
- 37:38Faster tests with context caching
- 45:07Parallelizing tests
- 47:18Mutation testing for quality
- 49:24Summary
related talks
48mTesting Spring Boot Applications Demystified
33mThings I Wish I Knew When I Started Testing Spring Boot Applications
44mThings I Wish I Knew When I Started Testing Spring Boot Applications
02h 43mSpring Boot testing: Zero to Hero
51mTesting Spring Boot Applications
01h 49mSpring Boot testing: Zero to Hero
50mTesting Spring Boot Applications
56mLearning Spring Boot with TDD
