# Testcontainers

DevFeed: [Testcontainers](<https://devfeed.tech/articles/testcontainers-27310.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201907/testcontainers/>)

Published: 2019-07-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Testcontainers](<https://devfeed.tech/topics/testcontainers.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Redis](<https://devfeed.tech/topics/redis.md>)

Tags: [docker](<https://devfeed.tech/tags/docker.md>), [integration](<https://devfeed.tech/tags/integration.md>), [redis](<https://devfeed.tech/tags/redis.md>), [services](<https://devfeed.tech/tags/services.md>), [testcontainers](<https://devfeed.tech/tags/testcontainers.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

A tutorial on using Testcontainers to run Docker containers for integration tests. It demonstrates testing communication with a live Redis instance without manually preparing infrastructure.

## Source excerpt

Recently I've found a very interesting project which allows to spin up docker containers for test purposes. Writing tests checking integration with external services is not an easy task. With testcontainers library it gets simpler because you can have external service up and running just for your test in a couple of lines of code. Read more