OpenParable
Skip to content
← Back to skills

Table Driven Tests

Testing & Quality
table-driven-tests

Table Driven Tests is an Agent Skill for testing & quality published in the kubernetes-sigs/kueue repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Review that tests covering multiple scenarios use table-driven style instead of inline sequential blocks.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/kubernetes-sigs/kueue/blob/HEAD/cmd/experimental/skills/reviewer/table-driven-tests/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/table-driven-tests, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Skill: Table-Driven Tests

Flag: A Go test function that covers multiple scenarios inline as a single sequential block.

Ask: Refactor to use table-driven style — tests := map[string]struct{ ... }{ ... } with for name, tc := range tests. A monolithic test that grows one if block per case is a "spaghetti test" and makes it hard to add new scenarios.