-
keploy
Unit and Integration Test generation for Developers. Generate tests and stubs for your application that actually work!
Another approach could be to capture real DB traffic (either from production or local) and then use that as a mock for your tests. This way it can isolate external variables from your tests as mentioned by other folks in this thread. I also wrote a tool for this - keploy
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
The first one is TestMain, which could improve the lifecycle management of the container. The second one is DATA-DOG/go-txdb, this allows you to open a new db connection running in a transaction, so each test could have its own isolated DB connection.