Skip to content
Back to skills

Property Based Testing

ASecurity

Use Hypothesis to find edge cases with generated inputs

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
ai-agentspythonbashtesting

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill property-based-testing --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Property Based Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-property-based-testing/badge)](https://www.skillsdirectory.com/skills/loopyluci-property-based-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.