The Curse of Spring Test
summary
Explains problems and pitfalls when testing Spring applications, focusing on how Spring Test framework behavior can lead to fragile or misleading tests. Describes concrete issues with application context loading, test isolation, and configuration, and discusses practical techniques to make Spring-based tests more reliable.
AI-written summary · about
chapters (21)
- 0:00Spring Boot tests intro
- 1:45Test types and architecture
- 4:15Unit test with context
- 8:10Fixing failed unit test
- 12:51Context config issues
- 18:23Property sources in tests
- 21:12Test annotation
- 23:43Context hierarchy
- 27:15Slow test execution
- 30:06Debugging context cache
- 31:11Database cache testing
- 36:09Automatic context loading
- 38:56Bean naming conflicts
- 40:49Configuration scanning
- 45:27Config vs Application
- 47:14Repositories with DataJpaTest
- 51:15Mocking default responses
- 55:31Isolating test types
- 56:34MockMvc integration
- 58:00Test scanning behavior
- 1:00:09Best practices
