pytest-dev

    pytest-dev/pytest

    The pytest framework makes it easy to write small tests, yet scales to support complex functional testing

    14.7K stars
    3.6K forks
    14.7K GitHub watchers
    Updated Nov 4, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    1 release in the last 90 days, the latest 8 days ago, with 381 contributors on GitHub.

    Use Cases & Benefits

    • Provides a Python testing framework that simplifies writing small tests and supports complex functional testing.
    • Offers detailed assertion introspection and modular fixtures, enabling easy test writing and scalable test management.
    • Use for writing and running unit tests in Python projects with minimal boilerplate code.
    • Use for managing complex test setups and resources using parametrized and modular fixtures.
    • Use for integrating and running existing unittest or trial test suites within a modern testing workflow.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    .. image:: https://github.com/pytest-dev/pytest/raw/main/doc/en/img/pytest_logo_curves.svg :target: https://docs.pytest.org/en/stable/ :align: center :height: 200 :alt: pytest

    .. image:: https://codecov.io/gh/pytest-dev/pytest/branch/main/graph/badge.svg :target: https://codecov.io/gh/pytest-dev/pytest :alt: Code coverage Status

    .. image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest/main.svg :target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest/main :alt: pre-commit.ci status

    .. image:: https://readthedocs.org/projects/pytest/badge/?version=latest :target: https://pytest.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

    .. image:: https://img.shields.io/badge/Discord-pytest--dev-blue :target: https://discord.com/invite/pytest-dev :alt: Discord

    .. image:: https://img.shields.io/badge/Libera%20chat-%23pytest-orange :target: https://web.libera.chat/#pytest :alt: Libera chat

    The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.

    Due to pytest's detailed assertion introspection, only plain assert statements are used. See getting-started <https://docs.pytest.org/en/stable/getting-started.html#our-first-test-run>_ for more examples.

    For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/.

    Excerpt from the pytest-dev/pytest README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    3.6K+321

    Open issues

    921+112

    Compared with peers in Testing

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    pytest-dev/pytest compared with Testing repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    D4Vinci/Scrapling101.1K+6.3K756 days ago
    nrwl/nx29.4K—653 days ago
    stretchr/testify26.2K—5678 days ago
    gildas-lormeau/SingleFile22.9K—35today
    appium/appium22.2K—601 day ago
    pytest-dev/pytest14.7K—658 days ago
    Category median26.2K—60—

    Discover Repositories

    Search across tracked repositories by name or description