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. (by testcontainers)

Testcontainers-node Alternatives

Similar projects and alternatives to testcontainers-node

  1. rust

    Empowering everyone to build reliable and efficient software.

  2. Civic Auth

    Auth in Less Than 5 Minutes. Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.

    Civic Auth logo
  3. go

    The Go programming language

  4. Nest

    366 testcontainers-node VS Nest

    A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀

  5. PHPT

    The PHP Interpreter

  6. MongoDB

    The MongoDB Database

  7. MySQL

    MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-time, open source transactional database.

  8. Symfony

    The Symfony PHP framework

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

  11. PHPUnit

    The PHP Unit Testing framework.

  12. dockertest

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

  13. gomock

    Discontinued GoMock is a mocking framework for the Go programming language. (by golang)

  14. pglite

    32 testcontainers-node VS pglite

    Embeddable Postgres with real-time, reactive bindings.

  15. testcontainers-go

    Testcontainers for Go is a Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.

  16. testcontainers-dotnet

    A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

  17. pg-mem

    An in memory postgres DB instance for your unit tests

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

  19. testcontainers-python

    Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.

  20. Playwright

    Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

  21. nestjs-testing

    Testing tutorial using NestJs

  22. embedded-postgres

    Run a real Postgres database locally on Linux, OSX or Windows as part of another Go application or test

  23. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better testcontainers-node alternative or higher similarity.

testcontainers-node discussion

Log in or Post with

testcontainers-node reviews and mentions

Posts with mentions or reviews of testcontainers-node. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-02.
  • How to test Umbraco against a real database
    1 project | dev.to | 17 Apr 2025
    In my last post about Test Driven Development, I briefly touched on testing with a real database and how I used TestContainers to do it.
  • Ask HN: Go libraries for managing Docker container pools and executing commands
    1 project | news.ycombinator.com | 7 Apr 2025
    Our use case is to execute test scripts in a sandbox mode. This is multi host and multi region setup. We might run millions of test scripts per day.

    One of our engineers found https://testcontainers.com. We find it interesting and it seems like it won’t maintain container live. Instead, it start and remove the container for each test. We might need to implement lock mechanism to run only maximum number of containers at a time. I don’t know whether it fits for highly scalable test cases.

  • Learning TDD by doing: Umbraco & EF Core
    1 project | dev.to | 7 Apr 2025
    Use a real database. TestContainers works very well.
  • 🍃Are You Making These Mistakes in Spring Boot Testing? Best Practices You Need to Know! 🍃
    3 projects | dev.to | 2 Apr 2025
    Instead, use TestContainers to spin up lightweight, disposable databases.
  • Simplifying Test Data Generation with Drizzle ORM
    3 projects | dev.to | 16 Mar 2025
    At our company, we run tests using an actual database with Testcontainers instead of mocking the database during test execution. To conduct such tests, we need to prepare test data in advance. However, creating test data can become cumbersome, leading to reduced readability and increased maintenance efforts.
  • One Container to Rule Them All - Until It Doesn’t
    3 projects | dev.to | 11 Mar 2025
    When working with Testcontainers I found a couple of things that are not very obvious at first glance. Especially when you are just starting to use Testcontainers. Let's check them out.
  • Unlocking the Power of Testcontainers: Scalable, Reliable, and Efficient Testing
    1 project | dev.to | 10 Mar 2025
    Testcontainers is a popular open-source library that allows developers to run lightweight, throwaway containers for integration testing. It provides real dependencies, such as databases, message brokers, and browsers, inside Docker containers, ensuring consistency across different environments.
  • The death of mocks by Testcontainers
    3 projects | dev.to | 28 Jan 2025
    Writing tests can often feel like a daunting task, especially when you find yourself juggling mocks for internal and external services. Flaky tests, unrealistic mocks, and the constant fear of “what if this breaks in production?” can make the process incredibly stressful. I recently had to write integration tests for a service built with NestJs and having to mock the database layer (repository) didn't sit right with me as it felt like I was testing a facade rather than the real thing. Now, don’t get me wrong—mocks are great and have their place in testing. But in this scenario, I wanted to ensure my code worked seamlessly in a production-like environment. So, I did what any developer would do: I reached out to my manager for advice. His suggestion? Testcontainers. It was a game-changer. With Testcontainers, I was able to spin up lightweight, disposable containers for services like PostgreSQL, Redis, and more—giving me a reliable, production-like testing environment right from my local machine. No more “living a lie” with overly simplistic mocks.
  • Database mocks are just not worth it
    10 projects | news.ycombinator.com | 30 Dec 2024
    Just use Testcontainers (https://testcontainers.com/). We use it for quickly spinning up a temporary postgres instance to run our db tests against.
  • 10 Ways to Effectively Manage Spring Cloud Dependencies
    4 projects | dev.to | 28 Nov 2024
    You can use the tools like Testcontainers to simulate microservices and verify compatibility in isolation.
  • A note from our sponsor - InfluxDB
    influxdata.com | 21 Apr 2025
    Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems. Learn more →

Stats

Basic testcontainers-node repo stats
54
2,127
9.0
7 days ago

Sponsored
Auth in Less Than 5 Minutes
Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
www.civic.com