property-based-testing

Installation
SKILL.md

Property-Based Testing — Invariant Verification

Mandatory Pre-Flight Context Inspection

Before writing property tests:

  1. Invariant Identification → Define mathematical properties that must hold true for ALL inputs (e.g. reverse(reverse(list)) == list)
  2. Arbitrary Generator Scoping → Constrain generator bounds to domain validity (e.g. non-empty strings, positive integers)
  3. 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.

Fast-Check Arbitrary Generator & Vitest Invariant Test

Installs
1
GitHub Stars
7
First Seen
Sep 13, 2026