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

Mockito

2K
164
+ 1
0
pytest

1.6K
266
+ 1
0
Add tool

Mockito vs pytest: What are the differences?

Mockito: Tasty mocking framework for unit tests in Java. 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; 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.

Mockito and pytest belong to "Testing Frameworks" category of the tech stack.

Mockito and pytest are both open source tools. Mockito with 9.02K GitHub stars and 1.62K forks on GitHub appears to be more popular than pytest with 4.42K GitHub stars and 1.06K GitHub forks.

Tempo Automation, SteelHouse, and relayr are some of the popular companies that use pytest, whereas Mockito is used by Frichti, Mercedes-Benz.io GmbH, and Debut. pytest has a broader approval, being mentioned in 11 company stacks & 11 developers stacks; compared to Mockito, which is listed in 9 company stacks and 6 developer stacks.

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

What is 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.

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.

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

Jobs that mention Mockito and pytest 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 Mockito?
What companies use pytest?
See which teams inside your own company are using Mockito or pytest.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with Mockito?
What tools integrate with pytest?

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

What are some alternatives to Mockito and pytest?
JUnit
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
Appium
Appium is an open source test automation framework for use with native, hybrid, and mobile web apps. It drives iOS and Android apps using the WebDriver protocol. Appium is sponsored by Sauce Labs and a thriving community of open source developers.
Robolectric
It is a framework that brings fast and reliable unit tests to Android. Tests run inside the JVM on your workstation in seconds. Test drive your Android application with robolectric
mockk
It is an open-source library focused on making mocking in Kotlin great. It is a library with the possibility of mocking default arguments, final classes, varargs, coroutines and extension methods.
xUnit
It is a free, open source, community-focused unit testing tool for the .NET Framework. It is the latest technology for unit testing C#, F#, VB.NET and other .NET languages. It works with ReSharper, CodeRush, TestDriven.NET and Xamarin.
See all alternatives