TestNG logo


A testing framework inspired from JUnit and NUnit
+ 1

What is TestNG?

It is a testing framework designed to simplify a broad range of testing needs, it covers all categories of tests: unit, functional, end-to-end, integration, etc.Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc.
TestNG is a tool in the Testing Frameworks category of a tech stack.
TestNG is an open source tool with GitHub stars and GitHub forks. Here’s a link to TestNG's open source repository on GitHub

Who uses TestNG?

24 companies reportedly use TestNG in their tech stacks, including Platform, Socio Labs, and Infra Market.

159 developers on StackShare have stated that they use TestNG.

TestNG Integrations

IntelliJ IDEA, Apache Maven, Eclipse, ScalaTest, and LambdaTest are some of the popular tools that integrate with TestNG. Here's a list of all 12 tools that integrate with TestNG.
Decisions about TestNG

Here are some stack decisions, common use cases and reviews by companies and developers who chose TestNG in their tech stack.

Joshua Dean Küpper
CEO at Scrayos UG (haftungsbeschränkt) · | 1 upvote · 563K views

We use JUnit for our Java Unit and Integration tests in Version 5. Combined with @JMockit2 and @truth (from Google) we perform all kinds of tests on our minecraft, standalone and microservice architecture.

We prefer JUnit over TestNG because of the bigger community, better support and the generally more agile development. JUnit integrates nicely with most software, while TestNG support is a little more limited.

See more

Jobs that mention TestNG as a desired skillset

See all jobs

TestNG's Features

  • Support for data-driven testing
  • Support for parameters
  • Powerful execution model (no more TestSuite)
  • Supported by a variety of tools and plug-ins (Eclipse, IDEA, Maven, etc

TestNG Alternatives & Comparisons

What are some alternatives to TestNG?
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn’t give you hangover because the tests are very readable and they produce clean verification errors.
An evolving, open source framework designed for writing and running tests in Microsoft .NET programming languages.It is an aspect of test-driven development , which is part of a larger software design paradigm known as Extreme Programming
See all alternatives

TestNG's Followers
196 developers follow TestNG to keep up with related blogs and decisions.