Cover a feature with combinatorial inputs without writing 64 tests
Когда использовать: Feature has 4+ enum-ish parameters and exhaustive testing would explode.
Предварительные требования
- Server/skill installed and authenticated — See repo README
Поток
-
ModelUse pypict skill: model checkout with payment_method=[card, paypal, applepay], shipping=[standard, express, intl], discount=[none, code, member], currency=[USD, EUR].✓ Скопировано→ Pict model + ~12 pairwise cases
-
Generate testsEmit pytest tests from those cases against
checkout().✓ Скопировано→ pytest file with parametrize
Итог: Real combinatorial coverage with ~12 cases instead of 81.
Подводные камни
- Pairwise misses higher-order bugs (3-way interactions). For safety-critical paths, use 3-wise. — Pairwise misses higher-order bugs (3-way interactions). For safety-critical paths, use 3-wise.