# 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.

- Skill name: `table-driven-tests`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/kubernetes-sigs/kueue/blob/HEAD/cmd/experimental/skills/reviewer/table-driven-tests/SKILL.md
- Repository: kubernetes-sigs/kueue (2,719 GitHub stars when collected)

## SKILL.md

# 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.

---

Source: https://www.openparable.com/skill/testing-quality/table-driven-tests (OpenParable). Cite the canonical URL above.
