·table-driven-test
</>

table-driven-test

Guidelines for creating clean, well-structured table-driven tests in Go following CockroachDB conventions.

26Installs·0Trend·@cockroachdb

Installation

$npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-test

How to Install table-driven-test

Quickly install table-driven-test AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-test
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: cockroachdb/cockroach.

SKILL.md

View raw

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.

Guidelines for creating clean, well-structured table-driven tests in Go following CockroachDB conventions. Source: cockroachdb/cockroach.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-test
Category
</>Dev Tools
Verified
First Seen
2026-02-25
Updated
2026-03-10

Browse more skills from cockroachdb/cockroach

Quick answers

What is table-driven-test?

Guidelines for creating clean, well-structured table-driven tests in Go following CockroachDB conventions. Source: cockroachdb/cockroach.

How do I install table-driven-test?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-test Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/cockroachdb/cockroach