proptest — property-based testing for Rust (Hypothesis-style).
“金融、加密货币与市场”领域的一个 Skill。已为 Claude Code, Codex, OpenCode 及另外 32 个智能体 准备好命令。
完整描述
proptest — property-based testing for Rust (Hypothesis-style). Generates
thousands of random inputs to find counterexamples to invariants, with
shrinking to minimal failing case. Critical for crypto, parsers, state
machines, and finance code where edge cases matter. Includes strategies
(gen functions), regression tracking, and integration with cargo test.
Alternative: quickcheck (simpler API, less powerful).
USE WHEN: user mentions "proptest", "property-based test", "proptest!",
"Strategy", "Arbitrary", "shrink", "quickcheck", "regression file",
"fuzz-light", "proptest-derive"
DO NOT USE FOR: Generic Rust unit tests - use `testing/rust-testing`
DO NOT USE FOR: Fuzzing with mutator (cargo-fuzz, AFL) - use bitcoin/testing/fuzz
DO NOT USE FOR: KMP property testing - use `testing/kotest` (has built-in property)