Self terminating container images for real world dependencies to support your unit tests
Self terminating container images for real world dependencies to support your unit tests

gitlab.com
Akash Rawal / selfterm · GitLab

Self terminating container images for real world dependencies to support your unit tests
Akash Rawal / selfterm · GitLab
What is the specific use case of these, relating to unit testing?
Why not just have the container execute unit tests, once that process ends and the container closes itself? This wouldn’t need anything additional.
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.
Ah! That’s what I didn’t understand. So its not a container for executing unit tests. Its a container for dependencies to support unit tests. That is not clear from the readme unless I missed something
edit - the title could be “Self terminating containers for real world dependencies to support your unit tests”
So it's not for unit tests, that's where the confusion stems