Cover a feature with combinatorial inputs without writing 64 tests
Quand l'utiliser : Feature has 4+ enum-ish parameters and exhaustive testing would explode.
Prérequis
- Server/skill installed and authenticated — See repo README
Déroulement
-
ModelUse pypict skill: model checkout with payment_method=[card, paypal, applepay], shipping=[standard, express, intl], discount=[none, code, member], currency=[USD, EUR].✓ Copié→ Pict model + ~12 pairwise cases
-
Generate testsEmit pytest tests from those cases against
checkout().✓ Copié→ pytest file with parametrize
Résultat : Real combinatorial coverage with ~12 cases instead of 81.
Pièges
- 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.