What are Testcontainers and why do they improve CI tests?
IntermediateConceptTesting and Quality Gates
Answer
Testcontainers is a library (Java, Go, Python, Node, .NET) that starts throwaway Docker containers (PostgreSQL, Kafka, Redis, LocalStack) from inside the test code and tears them down after. Tests run against real dependencies instead of mocks or a shared test database, with isolated, reproducible state. The CI runner needs access to a Docker daemon (or a compatible remote one).
More on Testing and Quality Gates
What is the testing pyramid?BeginnerWhat is the difference between unit, integration, and end-to-end tests?BeginnerWhat are smoke tests and sanity tests in a deployment pipeline?IntermediateWhat is code coverage and is a high percentage a good target?IntermediateWhat is a quality gate in SonarQube?IntermediateHow do you integrate SonarQube into a CI pipeline and make it block on gate failure?Intermediate