pytest
Python testing framework that keeps tests small and readable with plain assert statements and detailed assertion introspection, automatic test discovery, modular and parametrized fixtures, drop-in compatibility with existing unittest suites, a 1300+ plugin ecosystem, and Python 3.10+ or PyPy 3 support.
pytest at docs.pytest.org is a free MIT Python testing framework by Holger Krekel and others, plain assert with detailed introspection, auto-discovery of test modules and functions, modular and parametrized fixtures, runs unittest and trial suites out of the box, Python 3.10+ or PyPy 3, 1300+ external plugins, PyPI package pytest, optional Tidelift commercial support separate from the project, no sold paid edition or seat license (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is pytest free?
pytest: pytest is free open-source software released under the MIT License, copyrighted 2004 by Holger Krekel and others. The framework makes it easy to write small, readable tests and scales to complex functional testing for applications and libraries: failing plain assert statements carry detailed introspection so developers do not need to remember self.assert* method names, test modules and functions are auto-discovered, and modular fixtures manage small or parametrized long-lived test resources. Existing unittest suites, including trial suites, run out of the box. Runtime requires Python 3.10+ or PyPy 3, and the rich plugin architecture carries more than 1300 external plugins from the community. The PyPI package name is pytest; a Tidelift Subscription offers separate commercial support and maintenance for the open-source dependency, which is an optional third-party arrangement rather than a paid edition of pytest itself. No per-seat license is sold by the pytest project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is pytest free?
The code is free to self-host, but a hosted plan from the vendor may not be. pytest publishes its source, so cost depends on where you run it.
How much does pytest cost?
pytest is free open-source software released under the MIT License, copyrighted 2004 by Holger Krekel and others. The framework makes it easy to write small, readable tests and scales to complex functional testing for applications and libraries: failing plain assert statements carry detailed introspection so developers do not need to remember self.assert* method names, test modules and functions are auto-discovered, and modular fixtures manage small or parametrized long-lived test resources. Existing unittest suites, including trial suites, run out of the box. Runtime requires Python 3.10+ or PyPy 3, and the rich plugin architecture carries more than 1300 external plugins from the community. The PyPI package name is pytest; a Tidelift Subscription offers separate commercial support and maintenance for the open-source dependency, which is an optional third-party arrangement rather than a paid edition of pytest itself. No per-seat license is sold by the pytest project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check pytest's current pricing?
On pytest's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is pytest?
Test functions call plain assert, fixtures supply reusable or parametrized resources across the suite, and discovery collects matching files and functions by naming conventions; plugins extend the runner with coverage, mocking, benchmarking and database helpers.
How does pricing work?
The runner installs free under MIT with no seat license; community plugins are free, and the optional Tidelift subscription is a third-party commercial support contract rather than a feature-locked edition.
How does pytest compare with other tools in Dev Workflow & Productivity?
pytest is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| pytest | Open source | pytest is free open-source software released under the MIT License, copyrighted 2004 by Holger Krekel and others. The framework makes it easy to write small, readable tests and scales to complex functional testing for applications and libraries: failing plain assert statements carry detailed introspection so developers do not need to remember self.assert* method names, test modules and functions are auto-discovered, and modular fixtures manage small or parametrized long-lived test resources. Existing unittest suites, including trial suites, run out of the box. Runtime requires Python 3.10+ or PyPy 3, and the rich plugin architecture carries more than 1300 external plugins from the community. The PyPI package name is pytest; a Tidelift Subscription offers separate commercial support and maintenance for the open-source dependency, which is an optional third-party arrangement rather than a paid edition of pytest itself. No per-seat license is sold by the pytest project (data as of Nov 22, 2026). | Nov 22, 2026 |
| RSpec | Open source | RSpec is free open-source software; rspec-core is listed License: MIT on RubyGems, with rspec-core 3.13.7 published Nov 06, 2026 and requiring Ruby 1.8.7 or above. It is the Behaviour Driven Development framework for Ruby, intended to make TDD productive and fun. Install with the rspec gem, then run rspec --init to create the .rspec file and spec/spec_helper.rb setup; specs use RSpec.describe groups, context blocks, it examples and expect(...).to eq matcher expressions. The distribution splits into rspec-core for the runner and example groups, rspec-expectations for matchers, rspec-mocks for test doubles and message expectations, and rspec-support for shared helpers; the doc reporter prints the nested description tree with pass or failure status. Diff-lcs is installed as the matcher difference dependency. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Ginkgo | Open source | Ginkgo is free open-source software released under the MIT License, copyrighted 2013-2014 by Onsi Fakhouri. It is a testing framework for Go designed to help write expressive tests, best paired with the Gomega matcher library; together they provide a rich DSL for writing tests. Although often described as a BDD framework, Ginkgo is a general-purpose testing framework used across unit tests, integration tests, acceptance tests and performance tests. Spec suites parallelize with the ginkgo -p flag, which detects the optimal number of test processes from available cores, or -procs=N to set the count manually; the CLI compiles one test binary via go test -c, spawns N copies in separate processes with isolated memory, coordinates which spec runs next, and collates results into one coherent output stream. GinkgoT() mimics testing.T, and GinkgoTB() returns a wrapper satisfying testing.TB for third-party libraries that accept that interface; Error and Errorf behave as fatal failures in Ginkgo. The narrative docs are supplemented by godoc API reference. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
pytest's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: pytest is free open-source software released under the MIT License, copyrighted 2004 by Holger Krekel and others. The framework makes it easy to write small, readable tests and scales to complex functional testing for applications and libraries: failing plain assert statements carry detailed introspection so developers do not need to remember self.assert* method names, test modules and functions are auto-discovered, and modular fixtures manage small or parametrized long-lived test resources. Existing unittest suites, including trial suites, run out of the box. Runtime requires Python 3.10+ or PyPy 3, and the rich plugin architecture carries more than 1300 external plugins from the community. The PyPI package name is pytest; a Tidelift Subscription offers separate commercial support and maintenance for the open-source dependency, which is an optional third-party arrangement rather than a paid edition of pytest itself. No per-seat license is sold by the pytest project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
RSpec
Behaviour Driven Development framework for Ruby that structures specs with describe, context and it blocks and expect matcher assertions, composed of rspec-core, rspec-expectations, rspec-mocks and rspec-support gems, initialized with rspec --init, with doc-format reporting and a large Ruby testing community.
Ginkgo
Expressive Go testing framework paired with the Gomega matcher library, providing a BDD-style Describe, BeforeEach and It DSL for unit, integration, acceptance and performance tests, with multi-process parallel spec execution via the ginkgo CLI, result collation, and testing.TB-compatible wrappers for third-party Go libraries.
Tool Information
- Official Websitedocs.pytest.org
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
