Software Alternatives & Reviews

TestNG VS Testcontainers

Compare TestNG VS Testcontainers and see what are their differences

TestNG logo TestNG

TestNG is a testing framework.

Testcontainers logo Testcontainers

Testcontainers is a modern Java library that comes with the exclusive support of Junit tests.
  • TestNG Landing page
    Landing page //
    2022-06-12
  • Testcontainers Landing page
    Landing page //
    2023-10-07

TestNG videos

TESTNG FAKE DESIGNER ITEMS FROM VOVA - IS IT A SCAM?!

Testcontainers videos

Testcontainers – From Zero to Hero

More videos:

  • Review - Testcontainers: a Year-in-review (Kevin Wittek)
  • Review - Testcontainers: a Year-in-review (Kevin Wittek)

Category Popularity

0-100% (relative to TestNG and Testcontainers)
Automated Testing
60 60%
40% 40
Online Services
38 38%
62% 62
Testing
100 100%
0% 0
Tool
0 0%
100% 100

User comments

Share your experience with using TestNG and Testcontainers. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare TestNG and Testcontainers

TestNG Reviews

Top 10 Best Selenium Alternatives You Should Try
Important and influential features of TestNG over Selenium are flexible test configuration, powerful execution model, annotations, supports data-driven testing, multi-threading, etc. TestNG means Test Next Generation.

Testcontainers Reviews

We have no reviews of Testcontainers yet.
Be the first one to post

Social recommendations and mentions

Based on our record, Testcontainers should be more popular than TestNG. It has been mentiond 11 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

TestNG mentions (2)

  • Why does Rusts testing tools seem so much less polished compared to its other tooling?
    Testing tools on the JVM stopped using reflection about twenty years ago, they all use annotations these days (e.g. https://testng.org, https://junit.org). Rust has annotations too, obviously. Source: over 1 year ago
  • 9 Of The Best Java Testing Frameworks For 2021
    TestNG is a Java-based open-source testing framework. The framework is inspired by JUnit and NUnit. You can also create an HTML report during testing implementation. - Source: dev.to / almost 3 years ago

Testcontainers mentions (11)

  • Multiple MongoDB Databases on Spring Boot
    To be able to test for multiple databases, I recommend you using Testcontainers. That's my configuration to start the container:. - Source: dev.to / 18 days ago
  • Show HN: I open-sourced the in-memory PostgreSQL I built at work for E2E tests
    I don't get it either. Why not use something like https://testcontainers.com/? - Source: Hacker News / 23 days ago
  • Rust Tooling: 8 tools that will increase your productivity
    Testing with added infrastructure can be quite tricky. Testcontainers aims to solve this by providing an open-source framework for providing local, lightweight containers for your application that can be immediately thrown away after use. It also has a Rust SDK! - Source: dev.to / 2 months ago
  • Run and test DynamoDB applications locally using Docker and Testcontainers
    This is a good start. But DynamoDB Local is a great fit for Testcontainers which "is an open source framework for providing throwaway, lightweight instances of databases, message brokers, web browsers, or just about anything that can run in a Docker container.". - Source: dev.to / 3 months ago
  • Quarkus : Greener, Better, Faster, Stronger
    Devservices supports the automatic provisioning of unconfigured third party services in development and test mode. They can be provided by extension leveraging (usually) TestContainer library. - Source: dev.to / 6 months ago
View more

What are some alternatives?

When comparing TestNG and Testcontainers, you can also consider the following products

JUnit - JUnit is a simple framework to write repeatable tests.

Arquillian - Arquillian is an open-source testing platform that offers no more container lifecycle, deployment hassles, and mocks.

Cucumber - Cucumber is a BDD tool for specification of application features and user scenarios in plain text.

NUnit - NUnit is a unit-testing framework for all .Net languages.

RSpec - RSpec is a testing tool for the Ruby programming language born under the banner of Behavior-Driven Development featuring a rich command line program, textual descriptions of examples, and more.

Robot framework - Robot Framework is a generic test automation framework for acceptance testing and acceptance...