3 ms·
Containers do a good job on this. One should check out the Testcontainers[1] project that makes a good use of containers in language level. [1] https://github.
by 0xbkt 5y ago
Containers do a good job on this. One should check out the Testcontainers[1] project that makes a good use of containers in language level.
[1] https://github.com/testcontainers/testcontainers-go https://github.com/testcontainers/testcontainers-go
- JulianMorrison 5y agoThey can do a good job, but you need to be very careful. "Oh, it's faster if you start the container once and then run all the tests in it." Yeah but now your tests are all peeing in each other's pool. The upside of mocks is that the values returned are literally hard coded.