Softwr
pytest logo

pytest

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

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, launched in 2004, available on Linux, macOS, Windows.

Overview

What is pytest?

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 does pytest fall short?

Each is concrete and checkable: the half of a review a vendor will not write.

  • 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 are the alternatives to pytest?

The closest alternatives to pytest are JUnit, TestNG and Robot Framework. Each is a tool buyers genuinely weigh against it, with the reason why.

  • pytest vs JUnit

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

  • pytest vs TestNG

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

  • pytest vs Robot Framework

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

Pricing

How much does pytest cost?

pytest is free to use. 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

What can pytest do?

pytest lists 6 features, including assert-based test syntax, fixture system and parametrised testing.

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

Behind it

Who makes pytest?

pytest is made by pytest-dev community, founded in 2004 and based in Distributed, no single headquarters.

Company
pytest-dev community
Based in
Distributed, no single headquarters

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

  • pytest (Wikipedia)en.wikipedia.orgoriginated from PyPy; utest and std library at EuroPython 2004 became py.test in late 2004; MIT licence
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 source16 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 source10 researched notes
  • Open source feature flags and A/B testing that run experiment analysis inside your own data warehouse

    Free, then $40/mo15 researched notes
  • Open source end-to-end testing framework for React Native apps, built and maintained by Wix

    Open source13 researched notes
  • Behaviour-driven development testing framework that returned to community ownership after nine years under SmartBear

    Open source11 researched notes
  • Browser automation framework and the W3C WebDriver standard

    Open source11 researched notes
  • Node.js library for controlling Chrome and Firefox

    Open source10 researched notes
  • Native test management for Jira

    Pricing on request11 researched notes
  • Load testing tool with an open-source core and a commercial enterprise platform

    Free, then €99/mo11 researched notes
  • Open source API testing tool for REST, SOAP and GraphQL, from SmartBear

    Free plan12 researched notes
  • Feature flags tied to a metrics pipeline that attributes production impact to each release, now Harness FME

    Pricing on request15 researched notes
  • Open-source load testing tool where scenarios are written in plain Python

    Free plan11 researched notes
  • Visual regression testing owned by BrowserStack, with a permanent free tier for low screenshot volume

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

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

    Open source13 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

AI-assisted test automation for web, mobile and Salesforce apps

freemium

Enterprise performance and load testing platform from Tricentis

quote

SmartBear API testing platform for functional, security, performance and virtualised tests

quote

Enterprise web and mobile testing cloud from Perforce with real devices and AI test creation

quote

Cloud load and performance testing platform built around JMeter, with API monitoring

freemium

Automated UI testing tool for desktop, web and mobile apps from SmartBear

quote

JavaScript test framework for Node.js and the browser, an OpenJS Foundation project

open-source

Open-source load testing tool where scenarios are written in plain Python

open-source

Compare pytest with alternatives