Skip to content
Agentmart
Submit a tool

parameterized-tests

Enforce native parameterized or table-driven tests when adding or modifying unit tests that exercise the same behavior with multiple data cases.

Skill by dceoy

IndexedAGPL-3.0★ 4
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/dceoy-parameterized-tests

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Enforce native parameterized or table-driven tests when adding or modifying unit tests that exercise the same behavior with multiple data cases. Use whenever unit tests add repeated cases, edge-case matrices, or duplicated setup, execution, and assertions that differ only by case data.

Use cases: data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/parameterized-tests

What's inside

Skill name
parameterized-tests
Description
Enforce native parameterized or table-driven tests when adding or modifying unit tests that exercise the same behavior with multiple data cases. Use whenever unit tests add repeated cases, edge-case matrices, or duplicated setup, execution, and assertions that differ only by case data.
License
AGPL-3.0
Instructions
52 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • frameworks.md · references/

SKILL.md (first lines)

# Parameterized Tests

Use data-driven tests whenever multiple unit-test cases exercise the same behavior with the same test logic.

## Core Rule

When adding or modifying unit tests, if two or more cases share the same setup, execution, and assertion semantics and differ only in inputs, expected outputs, expected errors, options, or equivalent case data, express them with the test framework's native parameterization mechanism.

If a new case would duplicate an existing standalone test with the same test logic, consolidate the touched group instead of adding another duplicated test.

## Workflow

1. Inspect nearby tests and repository guidance to identify the testing framework and established idioms.
2. Identify cases that share setup, execution, and assertion semantics.
3. Parameterize groups of two or more equivalent cases with the framework's native mechanism.
4. Keep each case independently identifiable in test output when the framework supports case names or IDs.
5. Prefer explicit case data over branching inside the shared test body.
6. Run the narrowest relevant test command after the change.

See [references/frameworks.md](./references/frameworks.md) for common framework idioms.

## Parameterize

Parameterize when cases differ only by data such as:

- Inputs or arguments.
- Expected return values.
- Expected errors or exception values when the assertion structure remains the same.
- Flags, options, environment values, or fixtures used uniformly by every case.
- Boundary, validation, or normalization examples that exercise the same behavior.

## Keep Separate

Keep tests separate when parameterization would require materially different:

- Setup or teardown.
- Execution paths or side effects.
- Assertion semantics.
- Behavior boundaries whose separation improves intent, such as success and failure behavior with different assertions.

Do not parameterize merely to reduce line count. If the shared test body needs case-specific `if`, `switch`, or equivalent branching to express substantially different behavior, separate tests are usually clearer.

## Constraints

- Prefer the framework's native parameterization or the language's established table-driven idiom over custom loops or helper abstractions.
- Do not add a testing dependency solely to obtain parameterization.
- Do not introduce a custom parameterization abstraction when the repository or framework already has an idiomatic mechanism.
- Preserve repository-specific conventions when they are stricter than this skill.
- Use descriptive case IDs or names when raw parameter values do not make failures obvious.
- Keep case tables focused; split unrelated behaviors into separate parameterized tests rather than building one universal matrix.

From dceoy/ai-coding-agent-skills, AGPL-3.0.

More from dceoy/ai-coding-agent-skills

Signals

Stars
4
Forks
1
Open issues
2
Last commit (this folder)
Aug 16, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
AGPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from dceoy

Cite this page

parameterized-tests skill. Agent Mart. https://agentmart.dev/skills/dceoy-parameterized-tests (last updated 2026-10-24)