Testcontainers logo

Testcontainers

A library that integrates Docker with testing libs - for databases, Selenium web browsers, or anything else that can run in a Docker container
20
13
+ 1
0

What is Testcontainers?

It is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
Testcontainers is a tool in the Container Tools category of a tech stack.
Testcontainers is an open source tool with 3.8K GitHub stars and 765 GitHub forks. Here’s a link to Testcontainers's open source repository on GitHub

Who uses Testcontainers?

Companies
4 companies reportedly use Testcontainers in their tech stacks, including Nutmeg, Health Dynamics, and backend.

Developers
16 developers on StackShare have stated that they use Testcontainers.

Testcontainers Integrations

Docker, MySQL, PostgreSQL, Oracle, and JUnit are some of the popular tools that integrate with Testcontainers. Here's a list of all 6 tools that integrate with Testcontainers.
Pros of Testcontainers
Be the first to leave a pro

Testcontainers's Features

  • Data access layer integration tests
  • Application integration tests
  • UI/Acceptance tests

Testcontainers Alternatives & Comparisons

What are some alternatives to Testcontainers?
Arquillian
It is an integration and functional testing platform that can be used for Java middleware testing. With the main goal of making integration (and functional) tests as simple to write as unit tests, it brings the tests to the runtime environment, freeing developers from managing the runtime from within the test.
Docker Compose
With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.
Kubernetes
Kubernetes is an open source orchestration system for Docker containers. It handles scheduling onto nodes in a compute cluster and actively manages workloads to ensure that their state matches the users declared intentions.
Rancher
Rancher is an open source container management platform that includes full distributions of Kubernetes, Apache Mesos and Docker Swarm, and makes it simple to operate container clusters on any cloud or infrastructure platform.
Docker Swarm
Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.
See all alternatives

Testcontainers's Followers
13 developers follow Testcontainers to keep up with related blogs and decisions.
Anil Garg
majusmisiak
RAHUL SHARMA
oemergenc
hbish
Noe Perez
Piotr Kończak
Toktobubu Junusova
sudhirtumati
Dominik Jakielski