Testing ToolsUnclaimed

pytest

Vendor
pytest-dev
Also known as
py-test

Available worldwide

What is pytest?

pytest is a testing tools tool from pytest-dev. We're still gathering a full overview; visit the site for now.

pytest pricing

Plans, per-tier features and add-ons, dated and linked to live pricing. Pricing changes often; always verify at source before you rely on it.

Pricing as of verify at live pricing ↗Independently observed
Open sourceFree tier

Free and open source. Enterprise support available via Tidelift.

Community (Open Source)

Free
Free
  • Detailed assertion introspection
  • Auto-discovery of test modules
  • Modular fixtures
  • unittest compatibility
  • 1300+ external plugins

Enterprise Support

Contact sales
Contact sales

Available via Tidelift Subscription for commercial support and maintenance

What pytest does

The capabilities that matter for testing tools, normalised so it lines up with every alternative. “-” means we haven't confirmed it, not that it's missing.

Core
Test types
-
Browser automation
-
Built-in assertion library
Languages
Python
Isolation
Mocking / stubbing
Techniques
Snapshot testing
-
Performance
Parallel execution
-
Insight
Code coverage
-
DX
Watch mode
-
Ops
CI integration
Independently observed

Platform & deployment

Independently observed
Platforms
  • CLI

pytest FAQ

Common questions about pytest, answered from independent, dated evidence.

What is pytest and what is it primarily used for?

pytest is a testing framework for Python that enables developers to write simple, readable tests using plain assert statements. It supports everything from basic unit testing to complex functional testing and can automatically discover test files throughout a project directory.

Source: https://docs.pytest.org/en/stable/

What programming languages does pytest support?

pytest is designed exclusively for Python and requires Python 3.10 or later, or PyPy 3. It does not provide testing support for other programming languages.

Source: https://docs.pytest.org/en/stable/

What is the license and cost model for pytest?

pytest is open source software distributed under the MIT license and is completely free to use, modify, and distribute. There is no commercial version or paid tier.

Source: https://github.com/pytest-dev/pytest

What are pytest fixtures and why are they important?

Fixtures are reusable test components that set up preconditions and provide test data through a dependency injection mechanism. They eliminate boilerplate setup and teardown code, improve test clarity by using explicit function parameters, and can be easily parametrized to run tests with multiple data sets.

Source: https://docs.pytest.org/en/stable/fixture.html

How does pytest compare to Python's built-in unittest framework?

pytest uses plain Python assert statements instead of unittest's specialized assertion methods like assertEqual(), provides more detailed introspection into failing assertions, and requires less boilerplate code. Both frameworks can coexist in a project, as pytest can run unittest test suites directly.

Source: https://docs.pytest.org/en/stable/

Can pytest run existing unittest test suites without modification?

Yes, pytest can execute unittest and trial test suites natively without requiring any code changes. This allows teams to adopt pytest incrementally while maintaining compatibility with existing test code.

Source: https://docs.pytest.org/en/stable/

What is pytest's plugin architecture and how extensible is it?

pytest features a robust plugin system with over 1,300 external plugins available that extend its functionality for CI/CD integration, coverage reporting, parallel execution, and other specialized testing needs. This makes pytest highly customizable for different project requirements.

Source: https://docs.pytest.org/en/stable/

How does pytest automatically discover and run tests?

pytest follows standard Python naming conventions, automatically locating and running test files named test_*.py or *_test.py, and test functions beginning with test_. This automatic discovery eliminates the need for manual test registration or configuration in most cases.

Source: https://docs.pytest.org/en/stable/

pytest alternatives

Other testing tools we track, ranked by the same independent score.

Independent · unbought · dated

The Vioscale score: one lens on the evidence

Not user reviews and not a paid placement: a confidence-weighted blend of the independent signals below (adoption, activity, security posture, and more), which you can sort and re-weight yourself. Vendors can correct their listing but can never move their rank, and stars are weighted low as a vanity metric. It is one way to read the evidence for pytest, not the verdict.

Balanced composite 75 / 100
medium · 51%
Signal contributions to the composite score
SignalScoreWeightContributionEvidence
Package Downloads970.2019.4
Github Activity620.148.5
Stackoverflow Activity800.097.4
Capabilities580.127.1
Release Cadence830.086.4
Price Level1000.054.6
Github Stars770.042.9
Pricing Transparency250.061.6
Reliability00.060.0-
Integrations00.060.0-
Security Posture00.100.0-

Computed . Re-weight it by intent, or see the full method.

All data & sourcesshow ↓

Every value we hold, with its source, retrieval date, and confidence. This is the evidence behind the score: don't trust it, verify it.

Activity

AttributeValueEvidence
Commits last 30d90mediumsource · 2026-07-30 · 70%

Adoption

AttributeValueEvidence
Package downloads weekly30,000,000highsource · 2026-07-30 · 85%
Github stars12,000highsource · 2026-07-30 · 90%
Stackoverflow questions30,000highsource · 2026-07-30 · 75%

Content

AttributeValueEvidence
Faq[{"answer":"pytest is a testing framework for Python that enables developers to write simple, readable tests using plain assert statements. It supports everything from basic unit testing to complex functional testing and can automatically discover test files throughout a project directory.","source":"https://docs.pytest.org/en/stable/","question":"What is pytest and what is it primarily used for?","confidence":0.95},{"answer":"pytest is designed exclusively for Python and requires Python 3.10 or later, or PyPy 3. It does not provide testing support for other programming languages.","source":"https://docs.pytest.org/en/stable/","question":"What programming languages does pytest support?","confidence":0.95},{"answer":"pytest is open source software distributed under the MIT license and is completely free to use, modify, and distribute. There is no commercial version or paid tier.","source":"https://github.com/pytest-dev/pytest","question":"What is the license and cost model for pytest?","confidence":0.95},{"answer":"Fixtures are reusable test components that set up preconditions and provide test data through a dependency injection mechanism. They eliminate boilerplate setup and teardown code, improve test clarity by using explicit function parameters, and can be easily parametrized to run tests with multiple data sets.","source":"https://docs.pytest.org/en/stable/fixture.html","question":"What are pytest fixtures and why are they important?","confidence":0.95},{"answer":"pytest uses plain Python assert statements instead of unittest's specialized assertion methods like assertEqual(), provides more detailed introspection into failing assertions, and requires less boilerplate code. Both frameworks can coexist in a project, as pytest can run unittest test suites directly.","source":"https://docs.pytest.org/en/stable/","question":"How does pytest compare to Python's built-in unittest framework?","confidence":0.93},{"answer":"Yes, pytest can execute unittest and trial test suites natively without requiring any code changes. This allows teams to adopt pytest incrementally while maintaining compatibility with existing test code.","source":"https://docs.pytest.org/en/stable/","question":"Can pytest run existing unittest test suites without modification?","confidence":0.94},{"answer":"pytest features a robust plugin system with over 1,300 external plugins available that extend its functionality for CI/CD integration, coverage reporting, parallel execution, and other specialized testing needs. This makes pytest highly customizable for different project requirements.","source":"https://docs.pytest.org/en/stable/","question":"What is pytest's plugin architecture and how extensible is it?","confidence":0.92},{"answer":"pytest follows standard Python naming conventions, automatically locating and running test files named test_*.py or *_test.py, and test functions beginning with test_. This automatic discovery eliminates the need for manual test registration or configuration in most cases.","source":"https://docs.pytest.org/en/stable/","question":"How does pytest automatically discover and run tests?","confidence":0.94}]highsource · 2026-07-30 · 94%

Features

AttributeValueEvidence
Capabilities{"mocking":true,"languages":"Python","assertions":true,"ci_integration":true}mediumsource · 2026-08-05 · 60%

Language

AttributeValueEvidence
PrimaryPythonhighsource · 2026-07-30 · 90%

License

AttributeValueEvidence
SpdxMIThighsource · 2026-07-30 · 95%

Market

AttributeValueEvidence
Availability{"source":"https://pytest.org","confidence":0.95,"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}highsource · 2026-07-30 · 95%

Pricing

AttributeValueEvidence
Modelcommercialmediumsource · 2026-08-05 · 70%
Price levelfreemediumsource · 2026-08-05 · 60%
Free tierYesmediumsource · 2026-08-05 · 60%

Release

AttributeValueEvidence
Cadence days30mediumsource · 2026-07-30 · 70%