Testcontainers and API mocking for Golang projects
Sessionize YouTube Speaker Deck
Using Testcontainers and WireMock for integration testing in Go projects.
Slides
Abstract
Testcontainers has become one of the most popular tools for software integration testing. If you can put your system-under-test into a container, Docker Compose cluster, or a pod, this is what you're likely to use. If your target isn't ready, not containerizable, or just too heavy for testing as is, you can always use API mocking like WireMock or Microcks to mock your interfaces including REST API, gRPC, etc.
In this talks, I will focus on using WireMock and Microcks for cloud native projects implemented in Golang, including using it for common continuous delivery and deployment use-cases. We will see how to use Testcontainers and its API mocking modules as a standalone deployment, or as a part of Argo CD and Tekton pipelines. And then, let's see how to seamlessly use the same tools in Golang IDEs!
The Speaker Deck version is a quick overview of Testcontainers for integration testing in Golang projects, with WireMock as an example.
Video
References
Presented at
- PlatformCon, 2025