workshop icon indicating copy to clipboard operation
workshop copied to clipboard

Open in GitHub Codespaces

Introduction

This workshop will explain how to use Testcontainers (https://www.testcontainers.com) in your Java applications.

We'll build a sample Spring Boot application, add tests to it, and explore Testcontainers for Java API you need to know to be effective with your tests.

Table of contents

  • Introduction
  • Step 1: Getting Started
  • Step 2: Exploring the app
  • Step 3: Adding some tests
  • Step 4: Your first Testcontainers integration
  • Step 5: Hello, r u 200 OK?
  • Step 6: Adding Redis
  • Step 7: Test the API
  • Step 8: Local Development Environment with Testcontainers

Next steps which you can do in any order based on the interest:

  • Edge cases
  • Data initialization strategies
  • Migrating from Docker Compose
  • Chaos Engineering
  • Custom Modules