property-based-testing
Installation
SKILL.md
Property-Based Testing
RULES — Follow these with no exceptions
- Define properties, not examples — state what should always be true, not specific inputs/outputs
- Test invariants, not specific values — "output length equals input length" not "output is [1, 2, 3]"
- Leverage shrinking — let StreamData find minimal failing cases; add constraints like
min_length: 1orinteger(1..100)when shrunk cases expose invalid generator inputs