Войти
  • 5822Просмотров
  • 4 месяца назадОпубликованоSpring I/O

Improving Spring Boot test efficiency by Sergei Chernov @ Spring I/O 2025

Spring I/O 2025 - 21-23 May, Barcelona Slides: =/ Repo: In this session we’ll talk about how Spring Integration Test Framework works under the hood, how the contexts are cached and reused in subsequent tests. The existing solution can be quite convenient, efficient and flexible, but on a large scale with lots of modules, tests and heavy-weight beans like TestContainers-handled docker containers suite executions may lead to OOM failures and take too much time. To address these problems we’ll first consider practical steps like trivial ones and then we’ll do few tricks like test reordering and smart context closing logic (see slides link for detailed info - there a lots of them). Overall these optimizations can have significant optimization effect - both for memory and execution time, also better stability.