~/talk

Improving Spring Boot test efficiency

Talkat Spring I/O 2025 · 2025-05-22..05-23· [testing, developer-experience]
links:none on file
slides:none on file

Company with a 2M‑line monolith and 200 microservices faces thousands of integration tests that cause OOMs and CI overload; applying test reordering based on merged context configuration, eager context closing when a config’s last test runs, smaller context cache sizes, lazy-start Testcontainers and a singleton container pattern cuts active Docker containers drastically and halves some module builds (example: 6 min → 3 min, ~30%); library repo: github.com/seregamorph/spring-test-smart-context and slides linked.

AI-written summary · about

  1. 0:00Optimizing Spring Boot tests
  2. 3:55Test performance issues
  3. 10:00Spring test context caching
  4. 12:33Unique test configurations
  5. 15:45Docker containers reuse
  6. 17:13Lazy DB initialization
  7. 19:03Dynamic ports for parallelism
  8. 20:52Test config pitfalls
  9. 23:26Context lifecycle automation
  10. 27:46Test execution reordering
  11. 28:49Optimization impact
  12. 31:23Optimization library
  13. 34:15Future test framework
  14. 35:38Large-scale test factors
  15. 36:44Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.