Use Hypothesis to find edge cases with generated inputs
Scanned 9/10/2026
Install to Claude Code
npx -y skills add LoopyLuci/Skills --skill property-based-testing --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Property Based Testing?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-property-based-testing)More formats (shields.io, HTML) on the badges page.
---
name: property-based-testing
description: "Use Hypothesis to find edge cases with generated inputs"
---
# Property-Based Testing
## Install
```bash
pip install hypothesis
```
## Example
```python
from hypothesis import given, strategies as st
@given(st.lists(st.integers()))
def test_sort_idempotent(lst):
result = sorted(sorted(lst))
assert result == sorted(lst)
```
## Strategies
- `st.integers()` - integers
- `st.text()` - strings
- `st.lists(st.integers())` - lists
- `st.dictionaries(st.text(), st.integers())` - dicts
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!