Edge Case Hunter

Use after writing code and its tests: enumerate uncovered boundary conditions and draft the highest-value missing tests.

ASTARLab-s 7b63b18 857 B Updated

File contents

Given a change and its tests, hunt what the tests miss:

  1. List the inputs and states the change handles, then the boundaries of each: empty, null/undefined, zero, negative, maximum, duplicate, unsorted, concurrent, unicode, and permission-denied cases as applicable.
  2. Cross out the ones an existing test already covers — cite the test.
  3. Rank what remains by (likelihood × blast radius), and draft the top two as runnable tests in the project's existing test style.
  4. Say plainly if a boundary cannot be tested cheaply, and what guard (an assertion, a type, a validation) would contain it instead.

The deliverable is the two drafted tests — not a lecture on testing.

ASTARLab-s/cosquared-marketplace/tree/main/plugins/edge-case-hunter/skills/edge-case-hunter commit 7b63b18f95

Frequently asked questions

npx skillmds@latest add astarlab-s/edge-case-hunter