← All tools

Testcontainers Gem

Spin up real databases and services in Docker from inside your tests.

What it is

Testcontainers libraries start throwaway containers (Postgres, Redis, Kafka and more) for a test run and clean them up afterwards. Your integration tests hit the real thing instead of mocks.

Instead of

Mocked database layers, shared test databases, hand-written docker-compose setup

Reach for it when

Bugs slip through because your tests mock the database or message broker.

Try it in a few minutes

npm i -D testcontainers @testcontainers/postgresql
// in a test:
// const pg = await new PostgreSqlContainer("postgres:16").start();

Related

Mailpit Gem

A local SMTP server and web inbox for testing the emails your app sends.

Instead of: MailHog (unmaintained), sending test emails to your own address

llm (CLI) Gem

Use LLMs from the command line and pipe anything into them.

Instead of: Copy-pasting terminal output into a chat window