I am using TestContainers, what basically is able to run a Docker image of PostgreSQL, abstracting a lot of details. You can find a working example of this setup for integration tests using Go, testify and PosgreSQL here: https://github.com/dherik/ddd-golang-project For Java services using MySQL, I was able to use just the H2 database (in-memory) many times. Does a decent job and it's very compatible with MySQL. If y…
The whole point of the article is to make it _fast_: can you share how fast it is to spin up your database with TestContainers?
This includes a full build of the application, postgres container startup and spring context startup.
Starting the postgres container seems be less than 2 seconds of those 8 seconds.
Is that fast enough?