Spring Boot
Testcontainers
Iván López (@ilopmar)
● Iván López (@ilopmar)
● JVM developer
● Staff Software Engineer at VMware
● @MadridGUG coordinator
● Speaker: GeeCon, CommitConf, Devoxx,
RigaDevDays, Codemotion, Spring IO,...
🇪🇸🇮🇹🇬🇧🇦🇹🇨🇦🇧🇪🇨🇿🇺🇦🇩🇰🇸🇪🇺🇸🇷🇺🇪🇪🇱🇻🇭🇷🇵🇱🇹🇷🇷🇴🇧🇬
About me
@ilopmar
How do we test?
Unit tests
Integration
tests
E2E
Integration
Impl.
detail
Implemented
@ilopmar
Options
●
Shared instances
●
Install locally
●
In-memory implementations (H2,...)
@ilopmar
XXXXXXXXXXXXXX
@ilopmar
Testcontainer Java
●
Created ~9 years ago (Docker is ~11)
●
Original implementation in Java: Go, .NET,
Python, NodeJS, Rust, Haskell, Scala)
●
Uses Docker Java API
●
Runs in any Docker-compatible environment
●
Integration with framework/libraries: Spring,
JUnit, Spock...
@ilopmar
Modules
Talk is cheap,
show me the code
@ilopmar
Demo
@ilopmar
Demo
@ilopmar
Demo
@ilopmar
Demo
Thanks!
Questions?
@ilopmar
lopez.ivan@gmail.com
https:/
/github.com/ilopmar
Iván López
https://bit.ly/cern-sb-tc

Voxxed Days CERN 2024 - Spring Boot <3 Testcontainers.pdf