Skip to content

Take Control of your Integration Testing with TestContainers

Photo of Naresha K
Hosted By
Naresha K. and ravitej
Take Control of your Integration Testing with TestContainers

Details

How easy is it to write and maintain integration tests when your system under test interacts with databases, message stores, and other external systems? It can be quite challenging, can’t it? For example, the lack of control over the setup of databases can increase the cost of integration testing. Sometimes we take the route of using an in-memory database instead of the one we employ in the production environment, making the tests less effective. With Docker containers, you can simplify this to some extent by running the setup before invoking your tests. Imagine if you get to control the database environment right from within the test code. TestContainers bring in this convenience.

TestContainers is a tool that you can invoke from your test code. It provides lightweight, throwaway instances of common databases, web browsers(Selenium tests), or anything else that can run in a Docker container. In this presentation, Naresha walks you through how TestContainers is the most effective way to take advantage of Docker containers for integration testing. He presents through several use-cases and demonstrates how TestContainers simplifies integration testing.

Speaker:
Naresha K
Technical Excellence Coach & Architect
https://blog.nareshak.com/
https://twitter.com/naresha_k

Photo of Bangalore Groovy User Group group
Bangalore Groovy User Group
See more events