Need advice about which tool to choose?Ask the StackShare community!

pytest

451
266
+ 1
0
TestNG

148
183
+ 1
0
Add tool

pytest vs TestNG: What are the differences?

What is pytest? A full-featured Python testing tool to help you write better programs. A framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. It is a mature full-featured Python testing tool.

What is TestNG? A testing framework inspired from JUnit and NUnit. 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.

pytest and TestNG can be categorized as "Testing Frameworks" tools.

pytest is an open source tool with 4.59K GitHub stars and 1.11K GitHub forks. Here's a link to pytest's open source repository on GitHub.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More

What is pytest?

A framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. It is a mature full-featured Python testing tool.

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.

Need advice about which tool to choose?Ask the StackShare community!

Jobs that mention pytest and TestNG as a desired skillset
Pinterest
San Francisco, CA, US; , CA, US
CBRE
United States of America Texas Houston
CBRE
United States of America Texas Richardson
CBRE
United States of America Texas Richardson
What companies use pytest?
What companies use TestNG?
See which teams inside your own company are using pytest or TestNG.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with pytest?
What tools integrate with TestNG?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to pytest and TestNG?
Jasmine
Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.
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.
Avocado
Avocado is an open source interaction design toolbox built by​ IDEO.​ It ​enables designers to make quick interactive prototypes without writing a line of code.​ ​Built on top of Facebook's Origami framework, Avocado provides ready-to-use patches that can be easily combined to create fully-customized prototypes.​ Official announcement: http://labs.ideo.com/2014/05/27/avocado/
behave
It is behaviour-driven development, Python style. It uses tests written in a natural language style, backed up by Python code.
unittest
It is python’s xUnit style framework. It works much the same as the other styles of xUnit, and if you’re familiar with unit testing in other languages, this framework (or derived versions), may be the most comfortable for you.
See all alternatives