agentsclimarketplace

Table driven tests

Skill selamy-labs/agent-skills/skills/table-driven-tests

Use when one behavior should be checked against many input and output cases. Put cases in a named table and run the same assertion path.From its SKILL.md

Install
npx -y skills add selamy-labs/agent-skills --skill table-driven-tests

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.5 KB, 298 tokens by cl100k_base, as published. Nobody here has run it

Table Driven Tests

Use this skill when many inputs should exercise the same rule, parser, formatter, permission check, calculation, or state transition.

Workflow

  1. Confirm every case exercises the same behavior. Split separate behaviors into separate tests before building a table.
  2. Define a case structure with a descriptive name, inputs, expected result, and expected error when relevant.
  3. Run each case through the same arrange, act, and assert path.
  4. Give each case a stable failure label using subtests, parameter IDs, or the framework's named-case mechanism.
  5. Keep per-case branching out of the assertion loop. If a case needs unique assertions, it probably deserves its own test.
  6. Include representative edge cases: empty input, boundary values, invalid input, and at least one ordinary success case.

Review Checks

  • A failing case name explains what broke without opening the table.
  • The table is small enough to scan, or split by behavior group.
  • Expected values are explicit; they are not recomputed by duplicating the code under test.
  • Setup remains visible. Helpers may build data, but they do not hide the test's purpose.

Anti-Patterns

  • Mixing unrelated behaviors into one large table.
  • Adding if case.name == ... logic inside the assertion loop.
  • Using tables to avoid writing a clear standalone test for a unique workflow.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,736. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.