Property Based Test Gen

從 TC 的邊界欄位(前置 / 預期)+ 既有 pytest,產生 hypothesis 的 @given strategies,把 example-based test 升級成 fuzz test。每條 property test 跑 100+ input 自動探邊界 bug,跟 mutation-testing 互補(mutation 找漏點 / property 用 fuzz 封死)。當使用者提到「property-based testing / hypothesis / fuzz test / 隨機 input 測 / 邊界自動掃 / 把 example test 變 property test」,或剛跑完 mutation-testing 看到 boundary survived 想補強時觸發。配套:tc-to-pytest(前置 example test)、mutation-testing(找漏點)、test-review(驗 strategy 合理)。

kao273183 Updated

File contents

kao273183/qa-claude-skill/tree/main/skills/property-based-test-gen commit 7056e6133c

Frequently asked questions

npx skillmds@latest add kao273183/property-based-test-gen