location_city Virtual schedule Oct 15th 06:30 - 06:50 PM place Online people 28 Interested

How easy is it to write and maintain integration tests when the system under test interacts with databases and message stores? It can be quite challenging. 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 Java library 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.
 
 

Outline/Structure of the Demonstration

  • Demo 1: Using TestContainers for integration testing with real RDBMS (the one that you use in production) instead of using an in-memory database without sacrificing the flexibility.
  • Demo 2: Using TestContainers for tests driving your code that relies upon S3 API with Loclstack.

Learning Outcome

  • How Testcontainers simplify developing and maintaining integration tests
  • A tool that you can start using right away

Target Audience

Developers, Testers, Leads, Architects

Prerequisites for Attendees

Experience of developing and maintaining integration tests or having worked with such a team

schedule Submitted 1 year ago

Public Feedback