Back to skills
SKILL.md
Property Based Testing
ASecurityUse Hypothesis to find edge cases with generated inputs
- 2 stars
- 0 votes
- 0 copies
- 3 views
- Added September 10, 2026
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
npx -y skills add LoopyLuci/Skills --skill property-based-testing --agent claude-codeAre you the author of Property Based Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/loopyluci-property-based-testing)---
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
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.