Docker and CI/CD · Middle · Question 52 of 75
What does Testcontainers do?
- ✓Correct answer: Starts throwaway Docker containers from test code
- 2Tests that a Dockerfile follows best practices
- 3Runs your unit tests inside a single container
Explanation
Tests start a real database or broker, get its connection details and stop it afterwards. It works the same locally and in CI where Docker is available.