Hypothesis
Hypothesis: A focused Python library for generated inputs, shrinking, and stateful tests. Ranked #2 of 27 in Property-Based Testing Tools by our editors (9.3/10); pricing: Free plan; best for python teams using pytest.
At a glance
- Editor score9.3 / 10
- PricingFree plan
- Best forPython teams using pytest
- Free planYes
- Paid fromFree
- Supported languagesPython
- Facts checked20 Sep 2026

Where it wins
- Generates edge cases and automatically shrinks failing inputs
- Supports rule-based stateful testing and failure replay
- Works with both pytest and unittest across Windows, macOS, and Linux
Where it doesn't
- Supports Python rather than multiple programming languages
- Requires pytest or unittest instead of providing a standalone test runner
- Property-based tests require teams to define strategies and properties
Our verdict on Hypothesis
Hypothesis is an open-source Python library for property-based testing. Developers define input strategies and properties, then it generates test cases to explore how code behaves, including unusual edge cases. It is aimed at Python teams that want broader input exploration within existing pytest or unittest workflows. The library covers Windows, macOS, and Linux, giving it practical platform breadth while remaining focused on Python testing.
Its standout capability is the failure workflow. Hypothesis automatically shrinks generated failing cases into simpler examples, helping teams isolate the input behind a defect. It also stores failures for later replay, supports explicit examples with @example, and provides serialized reproduction through @reproduce_failure. Rule-based stateful testing extends the approach beyond individual function inputs to sequences of operations and state transitions. Together, these features make Hypothesis suited to testing behavior where edge cases or interaction sequences are difficult to enumerate manually.
Integration is deliberately centered on established Python test suites rather than a separate runner. pytest and unittest support lets teams incorporate generated tests into those environments, while the open-source distribution keeps the tool focused on library-based adoption. Hypothesis should suit Python teams that want generation, shrinking, stateful testing, and reproducible failures in one testing library. Teams working outside Python, or those seeking a standalone test runner instead of an integrated library, should choose a different tool.
Questions about Hypothesis
What does Hypothesis run on? Windows, macOS and Linux. It runs as a desktop app.
What does Hypothesis integrate with? 2 integrations: pytest and unittest.
Who is Hypothesis built for? Solo users, small businesses, mid-market companies and enterprises (our editorial estimate).
Your product? Our editors can test Hypothesis in depth and publish a review, labelled as paid · from $149/mo →
Hypothesis pricing
Hypothesis fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Supported languages | Python |
| Test runner support | pytest, unittest |
| Failing-case shrinking | Yes |
| Stateful testing | Yes |
| Reproducible failures | Yes |
| Cases per run | Not verified |
| Deployment | Desktop |
| Platforms | Windows, macOS, Linux |
| Support | Docs, Community |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 2 integrations: pytest, unittest |
| Pricing | Free plan |
| Website | hypothesis.works |
| Facts checked | 20 Sep 2026 |
Hypothesis integrations
Hypothesis lists 2 integrations on its own site.
- pytest
- unittest
Alternatives to Hypothesis
- fast-checkA deep, runner-agnostic testing library for JavaScript and TypeScript teams.9.4
- ProptestA focused Rust framework for generated inputs, shrinking, replay, and stateful tests.9.1
- RapidCheckA focused C++ framework for finding, shrinking, and reproducing counterexamples.9.0
See all Hypothesis alternatives →
Hypothesis vs the competition
- Hypothesis vs fast-check
- Hypothesis vs Proptest
- Hypothesis vs RapidCheck
- Hypothesis vs CsCheck
- Hypothesis vs Scala Hedgehog
- Hypothesis vs PropEr
Compare Hypothesis with any tool side by side →
Used Hypothesis? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Hypothesis for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
Hypothesis is listed in our Property-Based Testing Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/hypothesis-property-based-testing-tool/"><img src="https://www.itechguides.com/best/badge/hypothesis-property-based-testing-tool.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update



