
Which is more popular?
TestNG might be a bit more popular than pytest. We know about 6 links to it since March 2021 and only 5 links to pytest.
Website, pricing, platforms and company facts side by side.
|
|
|
|
|---|---|---|
| Website | testng.org | docs.pytest.org |
| Pricing | — | |
| Listed in |
What each product offers, as listed by its team.


Possible disadvantages
Possible disadvantages
Walkthroughs and reviews on video.
TESTNG FAKE DESIGNER ITEMS FROM VOVA - IS IT A SCAM?!
getting started with pytest (beginner - intermediate) anthony explains #518
More videos
How often each product is chosen within a category, 0–100% relative to the other.


Share your experience with using TestNG and pytest. For example, how are they different and which one is better?
External articles and on-site reviews we used to compare the two products.


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.
Pytest is a widely adopted testing framework that is designed to be easy to use and extend. It helps you to write elegant tests in both small and complex Python codebases.
Recommendations tracked on public social media and blogs since March 2021.


However, you must note that over-parallelization can cause resource contention and performance issues, so monitor it. Use tools like pytest-monitor, TestNG, and Appium to find your optimal parallel execution configuration. - Source: dev.to / almost 2 years ago
Inspired by JUnit, TestNG offers advanced features for complex, large-scale testing scenarios, covering unit, functional, integration, and end-to-end tests. - Source: dev.to / almost 2 years ago
If you’re interested in learning more about TestNG, visit its official website for additional information. - Source: dev.to / about 2 years ago
Pytest is an excellent alternative to unittest. Even though it doesn't come built-in to Python itself, it is considered more pythonic than unittest. It doesn't require a TestClass, has less boilerplate code, and has a plain assert... - Source: dev.to / over 2 years ago
For this lab exercise I had the opportunity to add unit tests to a classmate's project and experience their CI workflow. For this exercise I worked on go-go-web by kliu57. Go-Go Web is written in Python and uses the pytest testing... - Source: dev.to / almost 3 years ago
This week, in a setup for a CI/CD pipeline, I added unit and integration testing using Pytest to my Python CLI and utilized pytest-cov for generating a coverage report. As always, the merged commit for changes to the repo can be found here. - Source: dev.to / almost 3 years ago
When comparing TestNG and pytest, you can also consider the following products.

Arquillian is an open-source testing platform that offers no more container lifecycle, deployment hassles, and mocks.
Compare Arquillian to TestNG or pytest:

Cucumber is a BDD tool for specification of application features and user scenarios in plain text.
Compare Cucumber to TestNG or pytest:


Testcontainers is a modern Java library that comes with the exclusive support of Junit tests.
Compare Testcontainers to TestNG or pytest:

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.
Compare RSpec to TestNG or pytest:

Application and Data, Build, Test, Deploy, and Testing Frameworks
Compare PHPUnit to TestNG or pytest: