SHORTLIST20
हिन्दी
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
प्रोग्रामिंग

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. 1

    locust

    Scalable user load testing tool written in Python.

    28,319 stars 3,279 forkslast push 2026-11-27PythonMIT

  2. 2

    faker

    A Python package that generates fake data.

    19,506 stars 2,160 forkslast push 2026-11-20PythonMIT

  3. 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. 4

    pytest

    A mature full-featured Python testing tool.

    14,812 stars 3,842 forkslast push 2026-11-30PythonMIT

  5. 5

    seleniumbase

    Python framework for web automation & testing, with stealth options.

    13,296 stars 1,608 forkslast push 2026-11-29PythonMIT

  6. 6

    robotframework

    A generic test automation framework.

    12,003 stars 2,591 forkslast push 2026-11-18PythonApache-2.0

  7. 7

    hypothesis

    Hypothesis is an advanced QuickCheck-style property-based testing library.

    9,295 stars 714 forkslast push 2026-11-30PythonNOASSERTION

  8. 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. 9

    responses

    A utility library for mocking out the requests Python library.

    4,343 stars 397 forkslast push 2026-11-23PythonApache-2.0

  10. 10

    tox

    A generic virtual environment management and test command-line tool.

    3,987 stars 803 forkslast push 2026-11-30PythonMIT

  11. 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. 12

    factory-boy ▼1

    A test fixtures replacement for Python.

    3,809 stars 428 forkslast push 2026-01-01PythonMIT

  13. 13

    coverage

    Code coverage measurement.

    3,435 stars 573 forkslast push 2026-11-29PythonApache-2.0

  14. 14

    vcrpy

    Record and replay HTTP interactions in your tests.

    3,027 stars 455 forkslast push 2026-11-24PythonMIT

  15. 15

    nox

    Flexible test automation for Python.

    1,567 stars 230 forkslast push 2026-11-26PythonApache-2.0

  16. 16

    polyfactory

    A mock data generation library based on type hints (continuation of).

    1,523 stars 129 forkslast push 2026-11-19PythonMIT

  17. 17

    pytest-benchmark

    A pytest fixture for benchmarking code.

    1,459 stars 141 forkslast push 2026-11-01PythonBSD-2-Clause

  18. 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. 19

    respx

    Mock HTTPX with awesome request patterns and response side effects.

    847 stars 71 forkslast push 2026-07-21PythonBSD-3-Clause

साथ-साथ तुलना

LicencePlatformsWhat it doesPython versionsAsync supportType hintsPlugins and ecosystemBest for
locustMIT LicenseLinux, macOS, WindowsScalable user load and performance testing tool written in PythonPython >= 3.11Uses gevent coroutines for concurrent virtual user executionPartially typed with standard type annotationsExtensible via locust-plugins and custom client listenersDistributed load and stress testing of HTTP and web services
fakerMIT LicenseCross-platform (Linux, macOS, Windows)Generates synthetic fake data for testing, databases, and fixturesPython >= 3.9No native async support; operates synchronouslyIncludes type hints and py.typed markerCommunity providers and integrations with pytest-faker and factory_boyGenerating localized fake test data and database fixtures
playwright-pythonApache-2.0––Python >= 3.9–Fully typed with complete inline type annotations––
pytestMIT LicenseLinux, macOS, WindowsTesting framework for writing simple unit tests and complex suitesPython >= 3.10Supported via plugins like pytest-asyncio and pytest-trioFully typed with py.typed marker and mypy supportMassive plugin ecosystem with over a thousand community extensionsStandard unit, functional, and integration testing across Python projects
seleniumbaseApache-2.0Linux, macOS, WindowsFramework for web automation, scraping, and stealth browser testingPython >= 3.10Async execution supported through Playwright and CDP mode integrationsPartial type annotations across the codebaseIntegrates with pytest, Selenium, Playwright, and virtual display utilitiesBrowser testing requiring bot-detection bypass and CAPTCHA handling
robotframeworkApache-2.0OS independent (Linux, macOS, Windows)Generic keyword-driven test automation and robotic process automation frameworkPython >= 3.8Supports async keyword implementations through asyncio librariesSupports Python type hints for keyword argument conversionsExtensive ecosystem including SeleniumLibrary, Browser library, and PabotKeyword-driven acceptance testing and acceptance test-driven development (ATDD)
hypothesisMPL-2.0OS independent (Linux, macOS, Windows)Property-based testing library generating edge cases to find bugsPython >= 3.11Supports async tests via pytest-asyncio and trio extensionsType annotations with ghostwriter generating strategies from typesIntegrations with pytest, Django, NumPy, Pandas, and CrossHairFinding edge-case defects with automated property-based testing
mimesisMIT LicenseOS independent (Linux, macOS, Windows)High-performance fake data generator for multiple locales and schemasPython >= 3.10Operates synchronously without native async generatorsFully typed with py.typed marker and strict annotationsIntegrations with pytest, factory_boy, Pandas, and PolarsFast multilingual mock data and schema generation
responsesApache-2.0OS independent (Linux, macOS, Windows)Mocks HTTP calls made with the Python requests libraryPython >= 3.8No async support; designed exclusively for synchronous requestsFully typed with py.typed marker and inline annotationsPytest fixture support and custom response callback handlersMocking outbound HTTP responses in requests-based test suites
toxMIT LicenseLinux, macOS, WindowsAutomates packaging, virtualenv management, and cross-Python test executionPython >= 3.11No async API; supports parallel environment execution via threadsFully type-annotated codebase adhering to PEP 561Rich plugin ecosystem including tox-uv, tox-docker, and tox-poetryStandardizing test runs across multiple Python interpreter versions in CI
factory-boyMIT LicenseOS independent (Linux, macOS, Windows)Declarative test fixtures replacement for creating Python model instancesPython >= 3.8Limited native async; async ORMs require custom factoriesPartial type annotations without strict py.typed supportIntegrations with Django ORM, SQLAlchemy, MongoEngine, and FakerCreating maintainable declarative database fixtures and test objects
schemathesisMIT LicenseOS independent (Linux, macOS, Windows)Fuzzes and tests OpenAPI, GraphQL, and gRPC APIs against schemasPython >= 3.10Supports ASGI and aiohttp in-process asynchronous application testingFully type-checked codebase using strict mypy rulesIntegrates with pytest, Hypothesis, FastAPI, Flask, and AllureAutomated contract verification and property-based API testing
coverageApache-2.0OS independent (Linux, macOS, Windows)Measures and reports Python code line and branch coveragePython >= 3.9Measures coverage of async functions and coroutines seamlesslyFully typed with py.typed marker and type annotationsIntegrates with pytest-cov, tox, diff-cover, and coverage reportersTracking test suite execution coverage across Python codebases
vcrpyMIT LicenseOS independent (Linux, macOS, Windows)Records and replays HTTP network interactions using YAML cassettesPython >= 3.8Supports async HTTP libraries including aiohttp and TornadoPartial type hints across library modulespytest-recording plugin and support for requests, urllib3, and httpxDeterministic, offline replay testing of external HTTP API integrations
noxApache-2.0––Python >= 3.10–Fully typed and PEP 561 compliant with py.typed––
polyfactoryMIT License–––––––
pytest-benchmarkBSD-2-ClauseLinux, macOS, WindowsPytest fixture for benchmarking code execution speed and regressionsPython >= 3.10No native async fixture; requires synchronous wrapper functionsPartial type hints across plugin codebasePytest integration with py-cpuinfo, histogram generation, and CodSpeedMicro-benchmarking and performance regression checking in pytest
time-machineMIT LicenseLinux, macOS, Windows (CPython C extension)Mocks current system time and datetime at the C levelPython >= 3.9Works across async coroutines and event loops without issuesFully typed with py.typed marker and inline type annotationsProvides pytest fixtures and unittest TestCase mixinsFast and accurate date/time travel mocking in unit tests
respxBSD-3-ClauseOS independent (Linux, macOS, Windows)Mocks HTTPX request patterns and response side effectsPython >= 3.8Full native support for sync and async HTTPX clientsFully typed with py.typed marker and strict type hintsBuilt-in pytest fixture and unittest mock integrationMocking HTTP responses in sync and async HTTPX applications

हर खाना टूल की अपनी साइट, डॉक्स या रिपॉज़िटरी से लिया गया है; पेज संदर्भों में हैं।

कैसे मापा गया

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.

संदर्भ

  1. 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.
  2. vinta/awesome-python (Testing), GitHub community list, 19 tools with a public repository.
  3. locust: licence, github.com, checked 2026-11-15.
  4. locust: platforms, locust.io, checked 2026-11-15.
  5. locust: what it does, github.com, checked 2026-11-15.
  6. locust: python versions, github.com, checked 2026-11-15.
  7. locust: async support, docs.locust.io, checked 2026-11-15.
  8. faker: licence, github.com, checked 2026-11-15.
  9. faker: platforms, github.com, checked 2026-11-15.
  10. faker: python versions, pypi.org, checked 2026-11-15.
  11. faker: async support, faker.readthedocs.io, checked 2026-11-15.
  12. playwright-python: licence, github.com, checked 2026-11-15.
  13. playwright-python: python versions, pypi.org, checked 2026-11-15.
  14. playwright-python: type hints, github.com, checked 2026-11-15.
  15. pytest: licence, github.com, checked 2026-11-15.
  16. pytest: platforms, docs.pytest.org, checked 2026-11-15.
  17. pytest: python versions, github.com, checked 2026-11-15.
  18. pytest: type hints, github.com, checked 2026-11-15.
  19. seleniumbase: licence, github.com, checked 2026-11-15.
  20. seleniumbase: platforms, seleniumbase.io, checked 2026-11-15.
  21. seleniumbase: what it does, github.com, checked 2026-11-15.
  22. seleniumbase: python versions, github.com, checked 2026-11-15.
  23. robotframework: licence, github.com, checked 2026-11-15.
  24. robotframework: platforms, robotframework.org, checked 2026-11-15.
  25. robotframework: python versions, github.com, checked 2026-11-15.
  26. robotframework: type hints, robotframework.org, checked 2026-11-15.
  27. hypothesis: licence, github.com, checked 2026-11-15.
  28. hypothesis: platforms, hypothesis.readthedocs.io, checked 2026-11-15.
  29. hypothesis: python versions, pypi.org, checked 2026-11-15.
  30. hypothesis: async support, hypothesis.readthedocs.io, checked 2026-11-15.
  31. mimesis: licence, github.com, checked 2026-11-15.
  32. mimesis: platforms, mimesis.name, checked 2026-11-15.
  33. mimesis: python versions, github.com, checked 2026-11-15.
  34. responses: licence, github.com, checked 2026-11-15.
  35. responses: platforms, github.com, checked 2026-11-15.
  36. tox: licence, github.com, checked 2026-11-15.
  37. tox: platforms, tox.wiki, checked 2026-11-15.
  38. tox: python versions, github.com, checked 2026-11-15.
  39. factory-boy: licence, github.com, checked 2026-11-15.
  40. factory-boy: platforms, factoryboy.readthedocs.io, checked 2026-11-15.
  41. factory-boy: type hints, github.com, checked 2026-11-15.
  42. schemathesis: licence, github.com, checked 2026-11-15.
  43. schemathesis: platforms, schemathesis.readthedocs.io, checked 2026-11-15.
  44. schemathesis: what it does, github.com, checked 2026-11-15.
  45. coverage: licence, github.com, checked 2026-11-15.
  46. coverage: platforms, coverage.readthedocs.io, checked 2026-11-15.
  47. coverage: python versions, github.com, checked 2026-11-15.
  48. vcrpy: licence, github.com, checked 2026-11-15.
  49. vcrpy: platforms, vcrpy.readthedocs.io, checked 2026-11-15.
  50. vcrpy: what it does, github.com, checked 2026-11-15.
  51. nox: licence, github.com, checked 2026-11-15.
  52. nox: python versions, github.com, checked 2026-11-15.
  53. polyfactory: licence, github.com, checked 2026-11-15.
  54. pytest-benchmark: licence, github.com, checked 2026-11-15.
  55. pytest-benchmark: platforms, github.com, checked 2026-11-15.
  56. pytest-benchmark: what it does, pytest-benchmark.readthedocs.io, checked 2026-11-15.
  57. pytest-benchmark: python versions, github.com, checked 2026-11-15.
  58. time-machine: licence, github.com, checked 2026-11-15.
  59. time-machine: platforms, github.com, checked 2026-11-15.
  60. respx: licence, github.com, checked 2026-11-15.
  61. respx: platforms, lundberg.github.io, checked 2026-11-15.