Qu'est-ce que table-driven-test ?
Lignes directrices pour créer des tests basés sur des tables propres et bien structurés dans Go conformément aux conventions CockroachDB. Source : cockroachdb/cockroach.
Lignes directrices pour créer des tests basés sur des tables propres et bien structurés dans Go conformément aux conventions CockroachDB.
Installez rapidement le skill IA table-driven-test dans votre environnement de développement via la ligne de commande
Source : cockroachdb/cockroach.
Table-driven tests define multiple test cases in a slice of structs, then iterate over them executing the same test logic. This makes it easy to add cases, improves readability, and reduces duplication.
Not the same as: Datadriven tests (different library with testdata files)
Order struct fields with input fields at the top and verification fields at the bottom. Prefix all verification fields with expected so readers can immediately distinguish inputs from outputs.
Lignes directrices pour créer des tests basés sur des tables propres et bien structurés dans Go conformément aux conventions CockroachDB. Source : cockroachdb/cockroach.
Champs et commandes stables pour les citations IA/recherche.
npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-testLignes directrices pour créer des tests basés sur des tables propres et bien structurés dans Go conformément aux conventions CockroachDB. Source : cockroachdb/cockroach.
Ouvrez votre terminal ou outil de ligne de commande (Terminal, iTerm, Windows Terminal, etc.) Copiez et exécutez cette commande : npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-test Une fois installé, le skill sera automatiquement configuré dans votre environnement de programmation IA et prêt à être utilisé dans Claude Code, Cursor ou OpenClaw
https://github.com/cockroachdb/cockroach