Softwr
pytest logo

pytest

Python testing framework maintained by an independent core team funded partly through Tidelift

As of 1 September 2026, pytest is free to use. The dominant Python test framework, free and open source, maintained by a volunteer core team rather than any single company, with part of its sustainability funded through Tidelift subscription payments split among contributors who opt in. Softwr lists it under Testing. pytest is made by pytest-dev community, available on Linux, macOS, Windows.

Overview

What pytest does

pytest provides a test runner with a plain assert-based syntax, fixtures for setup and teardown, parametrised testing, and a large plugin ecosystem covering everything from coverage reporting to Django and async support, and it has effectively become the default choice for Python testing over the standard library's built-in unittest module. Its fixture system and plugin architecture are the features most cited for why teams move to it from unittest rather than staying with the standard library option. The governance fact worth knowing is that pytest has no corporate parent. It is maintained by the pytest-dev community, a volunteer core team without a single employer backing it, and part of its financial sustainability runs through Tidelift, a subscription service that pays maintainers of open source packages that paying customers depend on; pytest's Tidelift contributions are split evenly among contributors who opt into the programme. That structure means there is no company to be acquired, pivoted or shut down, but it also means there is no dedicated commercial support organisation behind it unless a team buys a Tidelift subscription specifically for that layer of assurance. Buyers are any Python team, free by definition, and the trade-off against the standard library's unittest is entirely upside for most teams: fixtures and plugins that unittest's more verbose class-based style does not offer. The trade-off against a vendor-backed alternative is that support depends on community responsiveness and, optionally, a Tidelift subscription, rather than a vendor SLA.

What people use it for

  • A Python team moving off the standard library's unittest module for a less verbose, fixture-driven testing style
  • A project needing parametrised tests to cover many input combinations without duplicating test code
  • A team wanting a large plugin ecosystem for coverage, async testing or Django-specific test support
  • An organisation wanting a commercial support and maintenance assurance layer via a Tidelift subscription rather than relying purely on community response times

The honest half

Where it falls short

Concrete and checkable, so you can decide whether any of them matter to you. This is the half of a review a vendor will not write about pytest.

  • There is no corporate owner or dedicated support organisation, so response time on bugs or security issues depends on volunteer maintainer availability unless a Tidelift subscription is purchased separately.
  • The plugin ecosystem's quality and maintenance level varies widely between plugins, and a team building a workflow around several plugins takes on the risk of any one of them going unmaintained.
  • Its assert-rewriting magic, while convenient, can behave unexpectedly in edge cases involving custom assert helpers, which occasionally confuses developers used to explicit assertion methods.
  • Large test suites with many fixtures can develop hard-to-trace fixture dependency chains, since fixtures can depend on other fixtures in ways that are not always obvious from a single test file.
  • Being free and volunteer-maintained, roadmap direction is set by contributor consensus rather than a company with commercial incentive to prioritise enterprise-requested features quickly.

Cross-shopped

What people choose instead of pytest

Each pairing was judged by two reviewers asking whether a buyer would genuinely weigh the two against each other. The ones that failed were deleted rather than published.

  • pytest logo
    pytest
    vs
    JUnit logo
    JUnit

    JUnit: If the project is Java rather than Python and needs the equivalent standard test framework

  • pytest logo
    pytest
    vs
    TestNG logo
    TestNG

    TestNG: If the Python project also needs cross-language test suite comparison against a Java TestNG-based system

  • pytest logo
    pytest
    vs
    Robot Framework logo
    Robot Framework

    Robot Framework: If the team wants a keyword-driven testing approach rather than pytest's code-first style

Pricing

What pytest costs

Taken from the vendor's own pricing page. Prices move, so check before you buy.

pytest

Free

  • Full functionality, no usage limits
  • Community support via GitHub
  • Optional Tidelift subscription for a commercial support and licence assurance layer

Capabilities

Features

  • Assert-based test syntax

    Plain Python assert statements instead of unittest's assertEqual-style methods

  • Fixture system

    Reusable, composable setup and teardown with dependency injection between fixtures

  • Parametrised testing

    Runs the same test function against multiple input sets without duplicating code

  • Plugin ecosystem

    Hundreds of third-party plugins for coverage, mocking, async, Django and more

  • Detailed assertion introspection

    Rewrites plain assert failures to show exactly what values differed

  • Test discovery

    Automatic collection of test files and functions without explicit registration

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

Is pytest owned by a company?

No, it is maintained by the pytest-dev volunteer community with no single corporate parent; some maintainers receive partial funding through Tidelift subscriptions.

Is there a paid version?

No, pytest itself is free and open source; buyers can optionally pay for a Tidelift subscription for commercial assurance and support.

Does it replace the standard library unittest module?

It does not replace unittest at the language level, but it is now the de facto standard choice for most Python projects over unittest's more verbose syntax.

Share

Keep looking

Where to go from pytest

Best Testing software for

Compare pytest with

Other Testing software

  • The default Java unit testing framework, developed by an independent team with commercial support available via OpenElements

    Open source11 researched notes
  • Java testing framework created by Cedric Beust, still actively maintained but effectively a single-lead project

    Open source11 researched notes
  • Keyword-driven test automation framework governed by a member-funded foundation

    Open source13 researched notes
  • JavaScript testing framework, moved from Meta to the OpenJS Foundation in 2022

    Open source11 researched notes
  • Fast unit test framework powered by Vite

    Open source7 researched notes
  • Managed end to end test coverage where the vendor writes and maintains your Playwright suite

    Pricing on request11 researched notes
  • Open-source web automation framework for testing and scripting across browsers

    Free plan10 researched notes
  • JavaScript end-to-end testing framework with browser-based runner and cloud service

    Free, then $67/mo12 researched notes
  • Commercial low-code test automation platform built on Appium and Selenium, priced per seat plus separate cloud session add-ons

    11 researched notes
  • Cloud device and browser testing platform, priced per plan tier with unlimited testing minutes rather than metered by the minute

    11 researched notes
  • Native test management for Jira, licensed per Jira user rather than per tester

    11 researched notes
  • Native test management for Jira

    Pricing on request11 researched notes
  • Test case management with an API first design and a free tier for small teams

    Free plan10 researched notes
  • AI-based visual regression testing, priced on component and page checkpoint volume

    11 researched notes
  • The default Java unit testing framework, developed by an independent team with commercial support available via OpenElements

    Open source11 researched notes
  • Java testing framework created by Cedric Beust, still actively maintained but effectively a single-lead project

    Open source11 researched notes
  • Open source Node.js browser and mobile automation framework, governed under the OpenJS Foundation with Sauce Labs as a premium sponsor

    Open source11 researched notes
  • Open source mobile automation framework hosted under the OpenJS Foundation with copyright assigned to the foundation

    Open source11 researched notes

Softwr does not host reviews and shows no star rating for pytest, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on pytest

Best Testing software alternatives

JavaScript testing framework, moved from Meta to the OpenJS Foundation in 2022

Open source, no licence fee

Open source end-to-end testing framework for React Native apps, built and maintained by Wix

Open source, no licence fee

The default Java unit testing framework, developed by an independent team with commercial support available via OpenElements

Open source, no licence fee

Visual regression testing owned by BrowserStack, with a permanent free tier for low screenshot volume

Freemium, paid tiers by screenshot volume

AI-based visual regression testing, priced on component and page checkpoint volume

Per month by checkpoint volume

Commercial low-code test automation platform built on Appium and Selenium, priced per seat plus separate cloud session add-ons

Per seat per month, plus separate per-session cloud execution charges

Behaviour-driven development testing framework that returned to community ownership after nine years under SmartBear

Open source, no licence fee

Open source mobile automation framework hosted under the OpenJS Foundation with copyright assigned to the foundation

Open source, no licence fee

Compare pytest with alternatives