Our great sponsors
-
testcontainers-python
Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Have a script for spinning up an identical database model in a docker container with your DB of choice. Even nicer than the manual route is depending on your language there's normally some sort of "testcontainers" type library (e.g in Java world https://www.testcontainers.org/ or in PYthon world https://github.com/testcontainers/testcontainers-python) that allows you to run a test that automatically spins up a container then you can use the network connection and run tests against it. E.g If I was testing a postgres integration my test would look like