Use property-based testing to find edge cases that example-based tests miss. Covers Hypothesis for Python, fast-check for TypeScript, and jqwik for Java.
When to use this skill
- Testing a function with many edge cases
- Finding inputs that break an algorithm
- Verifying invariant properties
Core concepts
This skill provides guidance on property-based testing best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.
Installation
curl -LO https://opencode-skills.example/downloads/code-quality/property-testing.zip
unzip property-testing.zip -d ~/.config/opencode/skills/
Restart OpenCode — the skill loads automatically.
When it triggers
- testing a function with many edge cases
- finding inputs that break an algorithm
- verifying invariant properties