Top 20 Python testing tools
pytest, Hypothesis, Playwright, Locust, Faker and other tools for testing Python code
अपडेट · GitHub stars (stars)
ये 20 ही क्यों
Ranked by GitHub stars: how many developers bookmarked the project. Stars measure attention, not quality, so each row also shows forks, licence, the last push and the section of the community list it sits in. Test frameworks, browser automation, load testing, mocks and fake-data generators answer different needs and share one list, so the 'listed under' column says which kind each one is. Tools you use every day (pytest, coverage) often have fewer stars than browser tools that also serve scrapers.
-
1
locust
Scalable user load testing tool written in Python.
28,232 stars 3,261 forkslast push 2026-10-21PythonMIT
-
2
faker
A Python package that generates fake data.
19,455 stars 2,130 forkslast push 2026-10-09PythonMIT
-
3
playwright-python
Python version of the Playwright testing and automation library.
15,058 stars 1,251 forkslast push 2026-10-21PythonApache-2.0
-
4
pytest
A mature full-featured Python testing tool.
14,627 stars 3,529 forkslast push 2026-10-21PythonMIT
-
5
seleniumbase
Python framework for web automation & testing, with stealth options.
13,113 stars 1,598 forkslast push 2026-10-21PythonMIT
-
6
robotframework
A generic test automation framework.
11,958 stars 2,576 forkslast push 2026-10-17PythonApache-2.0
-
7
hypothesis
Hypothesis is an advanced Quickcheck style property based testing library.
9,101 stars 693 forkslast push 2026-10-22PythonNOASSERTION
-
8
mimesis
A Python library for generating fake but realistic data in multiple languages and locales.
4,854 stars 369 forkslast push 2026-10-06PythonMIT
-
9
responses
A utility library for mocking out the requests Python library.
4,343 stars 390 forkslast push 2026-10-06PythonApache-2.0
-
10
tox
Auto builds and tests distributions in multiple Python versions.
3,974 stars 614 forkslast push 2026-10-22PythonMIT
-
11
factory-boy
A test fixtures replacement for Python.
3,811 stars 425 forkslast push 2026-01-01PythonMIT
-
12
schemathesis
Automatic property-based testing of web APIs from OpenAPI or GraphQL schemas.
3,691 stars 227 forkslast push 2026-10-22PythonMIT
-
13
-
14
vcrpy
Record and replay HTTP interactions on your tests.
3,021 stars 446 forkslast push 2026-10-20PythonMIT
-
15
-
16
polyfactory
A mock data generation library based on type hints (continuation of `pydantic-factories`).
1,517 stars 125 forkslast push 2026-10-21PythonMIT
-
17
time-machine
Travel through time in your tests by mocking the current time at the C level.
1,016 stars 55 forkslast push 2026-10-21PythonMIT
-
18
respx
Mock HTTPX with awesome request patterns and response side effects.
841 stars 68 forkslast push 2026-07-21PythonBSD-3-Clause
कैसे मापा गया
Every project in the Testing section of the community list vinta/awesome-python on GitHub that has a public repository, ranked by GitHub stars from the GitHub API; archived repositories are left out. Refreshed every 6 hours. Selenium is left out: its repository is the whole multi-language Selenium project, so its stars aren't the Python bindings'. unittest.mock is part of Python itself and has no repository of its own.
संदर्भ
- vinta/awesome-python: Testing, GitHub community list (list text CC BY 4.0; star counts from the GitHub API). Checked 2026-10-22 08:48 UTC.
- vinta/awesome-python (Testing), GitHub community list, 18 tools with a public repository.


