/ Directorio / Playground / pypict Test Case Generator
● Comunidad omkamal ⚡ Instantáneo

pypict Test Case Generator

por omkamal · omkamal/pypict-claude-skill

N-wise (pairwise) test case generation with the pypict library.

Combinatorial testing is one of the highest-ROI test techniques you're not using. This skill teaches Claude to model your inputs as parameter sets and generate pairwise (or N-wise) test cases via pypict — getting strong coverage with minimal cases.

Por qué usarlo

Características clave

Demo en vivo

Cómo se ve en la práctica

pypict-claude-skill.replay ▶ listo
0/0

Instalación

Repositorio del autor · Documentación oficial de Skills de Claude

Casos de uso

Usos del mundo real: pypict Test Case Generator

Cover a feature with combinatorial inputs without writing 64 tests

👤 QA + devs writing integration tests ⏱ ~15 min intermediate

Cuándo usarlo: Feature has 4+ enum-ish parameters and exhaustive testing would explode.

Requisitos previos
  • Server/skill installed and authenticated — See repo README
Flujo
  1. Model
    Use pypict skill: model checkout with payment_method=[card, paypal, applepay], shipping=[standard, express, intl], discount=[none, code, member], currency=[USD, EUR].✓ Copiado
    → Pict model + ~12 pairwise cases
  2. Generate tests
    Emit pytest tests from those cases against checkout().✓ Copiado
    → pytest file with parametrize

Resultado: Real combinatorial coverage with ~12 cases instead of 81.

Errores comunes
  • 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.

Coste y límites

Lo que cuesta ejecutarlo

Cuota de API
See provider docs for rate limits
Tokens por llamada
Varies by tool
Monetario
See repo README for pricing details
Consejo
Cache tool results and avoid repeated identical calls.

Seguridad

Permisos, secretos, alcance

Almacenamiento de credenciales: Use environment variables; never commit secrets
Salida de datos: Tool calls go to the provider's API as documented

Resolución de problemas

Errores comunes y soluciones

pict binary not found

Install Microsoft's pict tool (or pypict bundles it). See pypict README.

Verificar: pypict.exec_pict('test')
constraints rejected

pict constraint syntax is strict: IF [A] = "x" THEN [B] <> "y";. Use the skill's validator.

Verificar: Run validator first

Alternativas

pypict Test Case Generator vs otros

AlternativaCuándo usarlaContrapartida
Plain parametrizeFew parametersNo combinatorial benefit

Más

Recursos

📖 Lee el README oficial en GitHub

🐙 Ver issues abiertas

🔍 Ver todos los 400+ servidores MCP y Skills