I don’t get it, how would a database container run your unit tests? And unless you know some secret option to stop the database after, say, it is idle for a few seconds, it will continue running.
The purpose is to test database dependent code by spinning up a real database and run your code against that.
Thanks man, my brain was short-circuited on Testcontainers so I couldn’t write better. Also I am stealing the title.