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,319 stars 3,279 forkslast push 2026-11-27PythonMIT
-
2
faker
A Python package that generates fake data.
19,506 stars 2,160 forkslast push 2026-11-20PythonMIT
-
3
playwright-python
Python version of the Playwright testing and automation library.
15,136 stars 1,259 forkslast push 2026-11-30PythonApache-2.0
-
4
pytest
A mature full-featured Python testing tool.
14,812 stars 3,842 forkslast push 2026-11-30PythonMIT
-
5
seleniumbase
Python framework for web automation & testing, with stealth options.
13,296 stars 1,608 forkslast push 2026-11-29PythonMIT
-
6
robotframework
A generic test automation framework.
12,003 stars 2,591 forkslast push 2026-11-18PythonApache-2.0
-
7
hypothesis
Hypothesis is an advanced QuickCheck-style property-based testing library.
9,295 stars 714 forkslast push 2026-11-30PythonNOASSERTION
-
8
mimesis
A Python library for generating fake but realistic data in multiple languages and locales.
4,875 stars 374 forkslast push 2026-11-29PythonMIT
-
9
responses
A utility library for mocking out the requests Python library.
4,343 stars 397 forkslast push 2026-11-23PythonApache-2.0
-
10
tox
A generic virtual environment management and test command-line tool.
3,987 stars 803 forkslast push 2026-11-30PythonMIT
-
11
schemathesis ▲1
Runs arbitrary queries matching a GraphQL schema to find server errors.
3,841 stars 241 forkslast push 2026-11-30PythonMIT
इसमें भी: #5 GraphQL developer tools
-
12
factory-boy ▼1
A test fixtures replacement for Python.
3,809 stars 428 forkslast push 2026-01-01PythonMIT
-
13
-
14
vcrpy
Record and replay HTTP interactions in your tests.
3,027 stars 455 forkslast push 2026-11-24PythonMIT
-
15
-
16
polyfactory
A mock data generation library based on type hints (continuation of).
1,523 stars 129 forkslast push 2026-11-19PythonMIT
-
17
pytest-benchmark
A pytest fixture for benchmarking code.
1,459 stars 141 forkslast push 2026-11-01PythonBSD-2-Clause
-
18
time-machine
Travel through time in your tests by mocking the current time at the C level.
1,024 stars 58 forkslast push 2026-11-04PythonMIT
-
19
respx
Mock HTTPX with awesome request patterns and response side effects.
847 stars 71 forkslast push 2026-07-21PythonBSD-3-Clause
साथ-साथ तुलना
| Licence | Platforms | What it does | Python versions | Async support | Type hints | Plugins and ecosystem | Best for | |
|---|---|---|---|---|---|---|---|---|
| MIT License | Linux, macOS, Windows | Scalable user load and performance testing tool written in Python | Python >= 3.11 | Uses gevent coroutines for concurrent virtual user execution | Partially typed with standard type annotations | Extensible via locust-plugins and custom client listeners | Distributed load and stress testing of HTTP and web services | |
| MIT License | Cross-platform (Linux, macOS, Windows) | Generates synthetic fake data for testing, databases, and fixtures | Python >= 3.9 | No native async support; operates synchronously | Includes type hints and py.typed marker | Community providers and integrations with pytest-faker and factory_boy | Generating localized fake test data and database fixtures | |
| Apache-2.0 | – | – | Python >= 3.9 | – | Fully typed with complete inline type annotations | – | – | |
| MIT License | Linux, macOS, Windows | Testing framework for writing simple unit tests and complex suites | Python >= 3.10 | Supported via plugins like pytest-asyncio and pytest-trio | Fully typed with py.typed marker and mypy support | Massive plugin ecosystem with over a thousand community extensions | Standard unit, functional, and integration testing across Python projects | |
| Apache-2.0 | Linux, macOS, Windows | Framework for web automation, scraping, and stealth browser testing | Python >= 3.10 | Async execution supported through Playwright and CDP mode integrations | Partial type annotations across the codebase | Integrates with pytest, Selenium, Playwright, and virtual display utilities | Browser testing requiring bot-detection bypass and CAPTCHA handling | |
| Apache-2.0 | OS independent (Linux, macOS, Windows) | Generic keyword-driven test automation and robotic process automation framework | Python >= 3.8 | Supports async keyword implementations through asyncio libraries | Supports Python type hints for keyword argument conversions | Extensive ecosystem including SeleniumLibrary, Browser library, and Pabot | Keyword-driven acceptance testing and acceptance test-driven development (ATDD) | |
| MPL-2.0 | OS independent (Linux, macOS, Windows) | Property-based testing library generating edge cases to find bugs | Python >= 3.11 | Supports async tests via pytest-asyncio and trio extensions | Type annotations with ghostwriter generating strategies from types | Integrations with pytest, Django, NumPy, Pandas, and CrossHair | Finding edge-case defects with automated property-based testing | |
| MIT License | OS independent (Linux, macOS, Windows) | High-performance fake data generator for multiple locales and schemas | Python >= 3.10 | Operates synchronously without native async generators | Fully typed with py.typed marker and strict annotations | Integrations with pytest, factory_boy, Pandas, and Polars | Fast multilingual mock data and schema generation | |
| Apache-2.0 | OS independent (Linux, macOS, Windows) | Mocks HTTP calls made with the Python requests library | Python >= 3.8 | No async support; designed exclusively for synchronous requests | Fully typed with py.typed marker and inline annotations | Pytest fixture support and custom response callback handlers | Mocking outbound HTTP responses in requests-based test suites | |
| MIT License | Linux, macOS, Windows | Automates packaging, virtualenv management, and cross-Python test execution | Python >= 3.11 | No async API; supports parallel environment execution via threads | Fully type-annotated codebase adhering to PEP 561 | Rich plugin ecosystem including tox-uv, tox-docker, and tox-poetry | Standardizing test runs across multiple Python interpreter versions in CI | |
| MIT License | OS independent (Linux, macOS, Windows) | Declarative test fixtures replacement for creating Python model instances | Python >= 3.8 | Limited native async; async ORMs require custom factories | Partial type annotations without strict py.typed support | Integrations with Django ORM, SQLAlchemy, MongoEngine, and Faker | Creating maintainable declarative database fixtures and test objects | |
| MIT License | OS independent (Linux, macOS, Windows) | Fuzzes and tests OpenAPI, GraphQL, and gRPC APIs against schemas | Python >= 3.10 | Supports ASGI and aiohttp in-process asynchronous application testing | Fully type-checked codebase using strict mypy rules | Integrates with pytest, Hypothesis, FastAPI, Flask, and Allure | Automated contract verification and property-based API testing | |
| Apache-2.0 | OS independent (Linux, macOS, Windows) | Measures and reports Python code line and branch coverage | Python >= 3.9 | Measures coverage of async functions and coroutines seamlessly | Fully typed with py.typed marker and type annotations | Integrates with pytest-cov, tox, diff-cover, and coverage reporters | Tracking test suite execution coverage across Python codebases | |
| MIT License | OS independent (Linux, macOS, Windows) | Records and replays HTTP network interactions using YAML cassettes | Python >= 3.8 | Supports async HTTP libraries including aiohttp and Tornado | Partial type hints across library modules | pytest-recording plugin and support for requests, urllib3, and httpx | Deterministic, offline replay testing of external HTTP API integrations | |
| Apache-2.0 | – | – | Python >= 3.10 | – | Fully typed and PEP 561 compliant with py.typed | – | – | |
| MIT License | – | – | – | – | – | – | – | |
| BSD-2-Clause | Linux, macOS, Windows | Pytest fixture for benchmarking code execution speed and regressions | Python >= 3.10 | No native async fixture; requires synchronous wrapper functions | Partial type hints across plugin codebase | Pytest integration with py-cpuinfo, histogram generation, and CodSpeed | Micro-benchmarking and performance regression checking in pytest | |
| MIT License | Linux, macOS, Windows (CPython C extension) | Mocks current system time and datetime at the C level | Python >= 3.9 | Works across async coroutines and event loops without issues | Fully typed with py.typed marker and inline type annotations | Provides pytest fixtures and unittest TestCase mixins | Fast and accurate date/time travel mocking in unit tests | |
| BSD-3-Clause | OS independent (Linux, macOS, Windows) | Mocks HTTPX request patterns and response side effects | Python >= 3.8 | Full native support for sync and async HTTPX clients | Fully typed with py.typed marker and strict type hints | Built-in pytest fixture and unittest mock integration | Mocking HTTP responses in sync and async HTTPX applications |
हर खाना टूल की अपनी साइट, डॉक्स या रिपॉज़िटरी से लिया गया है; पेज संदर्भों में हैं।
संदर्भ
- vinta/awesome-python: Testing, GitHub community list (list text CC BY 4.0; star counts from the GitHub API). Checked 2026-11-30 18:25 UTC.
- vinta/awesome-python (Testing), GitHub community list, 19 tools with a public repository.
- locust: licence, github.com, checked 2026-11-15.
- locust: platforms, locust.io, checked 2026-11-15.
- locust: what it does, github.com, checked 2026-11-15.
- locust: python versions, github.com, checked 2026-11-15.
- locust: async support, docs.locust.io, checked 2026-11-15.
- faker: licence, github.com, checked 2026-11-15.
- faker: platforms, github.com, checked 2026-11-15.
- faker: python versions, pypi.org, checked 2026-11-15.
- faker: async support, faker.readthedocs.io, checked 2026-11-15.
- playwright-python: licence, github.com, checked 2026-11-15.
- playwright-python: python versions, pypi.org, checked 2026-11-15.
- playwright-python: type hints, github.com, checked 2026-11-15.
- pytest: licence, github.com, checked 2026-11-15.
- pytest: platforms, docs.pytest.org, checked 2026-11-15.
- pytest: python versions, github.com, checked 2026-11-15.
- pytest: type hints, github.com, checked 2026-11-15.
- seleniumbase: licence, github.com, checked 2026-11-15.
- seleniumbase: platforms, seleniumbase.io, checked 2026-11-15.
- seleniumbase: what it does, github.com, checked 2026-11-15.
- seleniumbase: python versions, github.com, checked 2026-11-15.
- robotframework: licence, github.com, checked 2026-11-15.
- robotframework: platforms, robotframework.org, checked 2026-11-15.
- robotframework: python versions, github.com, checked 2026-11-15.
- robotframework: type hints, robotframework.org, checked 2026-11-15.
- hypothesis: licence, github.com, checked 2026-11-15.
- hypothesis: platforms, hypothesis.readthedocs.io, checked 2026-11-15.
- hypothesis: python versions, pypi.org, checked 2026-11-15.
- hypothesis: async support, hypothesis.readthedocs.io, checked 2026-11-15.
- mimesis: licence, github.com, checked 2026-11-15.
- mimesis: platforms, mimesis.name, checked 2026-11-15.
- mimesis: python versions, github.com, checked 2026-11-15.
- responses: licence, github.com, checked 2026-11-15.
- responses: platforms, github.com, checked 2026-11-15.
- tox: licence, github.com, checked 2026-11-15.
- tox: platforms, tox.wiki, checked 2026-11-15.
- tox: python versions, github.com, checked 2026-11-15.
- factory-boy: licence, github.com, checked 2026-11-15.
- factory-boy: platforms, factoryboy.readthedocs.io, checked 2026-11-15.
- factory-boy: type hints, github.com, checked 2026-11-15.
- schemathesis: licence, github.com, checked 2026-11-15.
- schemathesis: platforms, schemathesis.readthedocs.io, checked 2026-11-15.
- schemathesis: what it does, github.com, checked 2026-11-15.
- coverage: licence, github.com, checked 2026-11-15.
- coverage: platforms, coverage.readthedocs.io, checked 2026-11-15.
- coverage: python versions, github.com, checked 2026-11-15.
- vcrpy: licence, github.com, checked 2026-11-15.
- vcrpy: platforms, vcrpy.readthedocs.io, checked 2026-11-15.
- vcrpy: what it does, github.com, checked 2026-11-15.
- nox: licence, github.com, checked 2026-11-15.
- nox: python versions, github.com, checked 2026-11-15.
- polyfactory: licence, github.com, checked 2026-11-15.
- pytest-benchmark: licence, github.com, checked 2026-11-15.
- pytest-benchmark: platforms, github.com, checked 2026-11-15.
- pytest-benchmark: what it does, pytest-benchmark.readthedocs.io, checked 2026-11-15.
- pytest-benchmark: python versions, github.com, checked 2026-11-15.
- time-machine: licence, github.com, checked 2026-11-15.
- time-machine: platforms, github.com, checked 2026-11-15.
- respx: licence, github.com, checked 2026-11-15.
- respx: platforms, lundberg.github.io, checked 2026-11-15.