TestNG logo

TestNG

A testing framework inspired from JUnit and NUnit
163
131
+ 1
0

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 1.7K GitHub stars and 903 GitHub forks. Here’s a link to TestNG's open source repository on GitHub

Who uses TestNG?

Companies
13 companies reportedly use TestNG in their tech stacks, including Platform, Socio Labs, and Isobar Commerce Center of Excellence.

Developers
85 developers on StackShare have stated that they use TestNG.

TestNG Integrations

IntelliJ IDEA, Eclipse, Apache Maven, LambdaTest, and ScalaTest are some of the popular tools that integrate with TestNG. Here's a list of all 10 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 · 135.4K 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

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
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
Cucumber
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
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.
Mockito
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.
NUnit
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
131 developers follow TestNG to keep up with related blogs and decisions.