# pytest

> pytest: helps you write better programs

Source: https://talira.ai/catalog/pytest-5repc51s
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Command-line tool
- Categories: [developer tools / testing / frameworks](https://talira.ai/categories/developer-tools/testing/frameworks), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Plugins: yes[^1]
- Backed by: [pytest-dev](https://talira.ai/orgs/pytest-dev.md)

pytest is the test framework for [Python](https://talira.ai/catalog/python-tgjs08pq.md) that makes small, readable tests easy and scales to complex functional testing of applications and libraries. Tests are plain functions using the plain `assert` statement, and pytest reports detailed information about failing assertions. It discovers test modules and functions automatically, manages test resources through modular fixtures, parametrizes tests and fixtures, and runs existing unittest suites out of the box. More than 1,300 external plugins extend it. It runs on Python 3.10+ and PyPy 3, is MIT licensed and is funded through donations on Open Collective.

## Links

- Website: https://docs.pytest.org/
- GitHub: https://github.com/pytest-dev/pytest
- Docs: https://docs.pytest.org/en/stable/

## Problems it solves

- write Python tests with plain assert statements instead of self.assertEqual everywhere
- share database and API test setup across many tests without copying code
- run the same test against a list of different inputs
- see exactly which values differed when an assertion fails
- run our old unittest suite and new-style tests together
- rerun only the tests that failed last time
- skip tests on platforms where they can't pass and mark known failures

## Features

- plain assert statements with detailed failure reports
- automatic discovery of test modules and functions
- modular fixtures for test resources
- parametrized tests and fixtures
- runs unittest and trial suites out of the box
- 1,300+ external plugins
- rerun failed tests and keep state between runs

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.76 out of 1.
Signals: maintenance 1.00, adoption 0.83, momentum 0.61, community 1.00, backing 0.30, extensibility 0.40.

- last commit today
- 222 commits in the last 90 days
- latest release 9.2.0 27 days ago
- 14.7k GitHub stars
- 1190 contributors
- accepts sponsorship (Github, Tidelift, Open Collective)
- backed by pytest-dev
- has a plugin system

## Alternatives

- [RSpec](https://talira.ai/catalog/rspec-87n8pes2.md): Behaviour-driven testing framework for Ruby
- [Jest](https://talira.ai/catalog/jest-wp596gce.md): Delightful JavaScript Testing
- [Vitest](https://talira.ai/catalog/vitest-eyy494yh.md): Next generation testing framework powered by Vite

## Sources

[^1]: https://docs.pytest.org/en/stable/ (checked 23 Nov 2026)
[^2]: https://github.com/pytest-dev/pytest/blob/main/LICENSE (checked 23 Nov 2026)
