property-based-testing
Installation
SKILL.md
Property-Based Testing — Invariant Verification
Mandatory Pre-Flight Context Inspection
Before writing property tests:
- Invariant Identification → Define mathematical properties that must hold true for ALL inputs (e.g.
reverse(reverse(list)) == list) - Arbitrary Generator Scoping → Constrain generator bounds to domain validity (e.g. non-empty strings, positive integers)
- Shrinking & Reproducibility → Store seed values for failing test runs to reproduce minimal failing inputs
Activation Boundaries
- Activate when: Operating in tasks requiring Generative input invariant testing using fast-check (TS/JS) and hypothesis (Python) to uncover hidden edge cases and boundary failures..
- DO NOT activate when: The task falls strictly outside property-based-testing domain or belongs to a different dedicated specialist.