Property Based Testing

Replace hand-picked example lists with properties a library checks across generated inputs: choose the property class first (round trip, idempotence, oracle comparison, an invariant after any sequence of operations, never crashes), build generators that construct valid domain objects instead of filtering, pin every shrunk counterexample as a permanent example test, run a small seeded budget on pull requests and a large one nightly, and test stateful APIs against a simple model. Use when someone asks how to test a parser, serialiser, encoder, normaliser or state machine, mentions Hypothesis, fast-check, proptest or QuickCheck, or has a generator that discards most of its inputs. Not for picking example cases by hand (test-design), coverage-guided fuzzing of untrusted bytes (fuzz-harness), or measuring whether the suite catches bugs at all (mutation-testing).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 8a50f96f8e

Frequently asked questions

npx get-skill add greenblacked/property-based-testing