Testcontainers

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. dockertest

    Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.

    I've been using Docker containers for integration testing for last few years. I usually roll my own custom solution in Go using the https://github.com/ory/dockertest package though that adds necessary functionality around running migrations, creating kafka topics, or similar. Will definitely need to check out this next time I'm writing a test package

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. testcontainers-node

    Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

  4. latte

    Latte is a modern data engineering toolkit. (by turbolytics)

    Test containers is such a game changer for integration testing, they have language specific docker apis that make it trivial to bring up containers and verify that they are ready doe testing.

    Pretty much every project I create now has testcontainers for integration testing :)

    I setup CI so it lints, builds, unit tests then integration tests (using testcontainers)

    https://github.com/turbolytics/latte/blob/main/.github/workf...

    Their language bindings provide nice helper functions for common database operations (like generating a connection uri from a container user)

    https://github.com/turbolytics/latte/blob/main/internal/sour...

  5. kubedock

    Kubedock is a minimal implementation of the docker api that will orchestrate containers on a Kubernetes cluster, rather than running containers locally.

    We use [kubedock](https://github.com/joyrex2001/kubedock) to run testcontainers in kubernetes clusters. As long as you're only pulling the images, not building or loading them (explicitly not supported by kubedock), it works pretty well.

  6. phoenix_container_example

    Production-quality example for Elixir/Phoenix building, testing, and running in containers

    It's particularly useful for testing a set of microservices.

    See https://github.com/cogini/phoenix_container_example for a full example.

  7. Testcontainers

    Testcontainers 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.

    except the parent is wrong (at least the Java impl). see:

    https://github.com/testcontainers/testcontainers-java/blob/m...

    https://github.com/testcontainers/testcontainers-java/blob/m...

  8. dagger

    An open-source runtime for composable workflows. Great for AI agents and CI/CD. (by dagger)

    > GHA has "service containers", but unfortunately the feature is too basic to address real-world use cases: it assumes a container image can just … boot! … and only talk to the code via the network. Real world use cases often require serialized steps between the test & the dependencies, e.g., to create or init database dirs, set up certs, etc.)

    My biased recommendation is to write a custom Dagger function, and run it in your GHA workflow. https://dagger.io

    If you find me on the Dagger discord, I will gladly write a code snippet summarizing what I have in mind, based on what you explained of your CI stack. We use GHA ourselves and use this pattern to great effect.

    Disclaimer: I work there :)

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. embedded-postgres-binaries

    Lightweight bundles of PostgreSQL binaries with reduced size intended for testing purposes.

  11. embedded-postgres

    Java embedded PostgreSQL component for testing (by zonkyio)

  12. pglite

    Embeddable Postgres with real-time, reactive bindings.

  13. pytest-docker

    Docker-based integration tests

    I'm surprised this is getting so much attention. I thought this just standard practice at this point? If you use things like Gitlab CI then you get this via the `services` in your pipeline. The CI job itself runs in a container too.

    I use a very similar thing via pytest-docker: https://github.com/avast/pytest-docker The only difference seems to be you declare your containers via a docker-compose file which I prefer because it's a standard thing you can use elsewhere.

  14. services-flake

    NixOS-like services for Nix flakes

    If your project uses Nix, checkout services-flake for running services via Nix.

    https://github.com/juspay/services-flake

    We actually do this in Nammayatri, an OSS project providing "Uber" for autos in India.

    https://github.com/nammayatri/nammayatri

    There is a services-flake module allowing you to spin the entire nammayatri stack (including postgres, redis, etc.) using a flake app. Similarly, there's one for running load test, which is also run in Jenkins CI.

  15. nammayatri

    A Direct-to-Driver open mobility platform powering the next-generation of mobility applications in India.

    If your project uses Nix, checkout services-flake for running services via Nix.

    https://github.com/juspay/services-flake

    We actually do this in Nammayatri, an OSS project providing "Uber" for autos in India.

    https://github.com/nammayatri/nammayatri

    There is a services-flake module allowing you to spin the entire nammayatri stack (including postgres, redis, etc.) using a flake app. Similarly, there's one for running load test, which is also run in Jenkins CI.

  16. gradle-docker-compose-plugin

    Simplifies usage of Docker Compose for integration testing in Gradle environment.

    Something that improved developer experience by far and also sped up our builds is starting the container dependencies via docker-compose and connect to it for integration testing. This allows reuse of containers, you can connect to it after/during an integration test to debug without having to keep searching for ports constantly.

    With TestContainers - I've perceived that running integration tests / a single test repeatedly locally is extremely slow as the containers are shut down when the java process is killed. This approach allows for this while also allowing to keep it consistent - example, just mount the migrations folder in the start volume of your DB container and you have a like-for-like schema of your prod DB ready for integration tests.

    I've found the https://github.com/avast/gradle-docker-compose-plugin/ very useful for this.

  17. otj-pg-embedded

    Java embedded PostgreSQL component for testing

    Anyone have an opinion of embedded-postgres vs https://github.com/opentable/otj-pg-embedded (of which its a fork) for Clojure use?

  18. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Run and test DynamoDB applications locally using Docker and Testcontainers

    3 projects | dev.to | 7 Feb 2024
  • Integration Tests with In Memory DB vs Real DB on Docker

    1 project | /r/dotnet | 28 Aug 2023
  • Unit Testing

    2 projects | /r/dotnet | 5 Jul 2023
  • Running untrusted (user-provided) Python code on ASP.NET/C# backend

    2 projects | /r/dotnet | 20 Jun 2023
  • If i want to do testing CRUD should I use in memory or just do integration test where I use a seperate database?

    1 project | /r/csharp | 22 Apr 2023

Did you know that Go is
the 4th most popular programming language
based on number of references?