test-properties

Installation
SKILL.md

Property-based tests

State what must hold for every input, let a generator search for a counterexample, and let the library shrink it to a small failing case (a local minimum, not always the smallest). One property replaces dozens of examples and finds the cases nobody listed. Success is a property that fails on a wrong implementation, with a shrunk counterexample that replays from a seed.

Process

  1. Use the ecosystem's library if the repository has one; adding one is a dependency decision, so ask first:
Installs
1
First Seen
8 days ago
Security Audits