Test Coverage Categories

Systematic approach to achieving comprehensive test coverage

snoodleboot-io Updated 2 repo stars

File contents

Coverage Categories

Work through these categories in order for comprehensive coverage:

  1. HAPPY PATH — Expected inputs produce expected output
  2. BOUNDARY VALUES — Min, max, exactly at limit, one over limit
  3. EMPTY / NULL / ZERO — Each nullable input absent or zeroed
  4. ERROR CASES — Dependency throws, network fails, DB unavailable
  5. CONCURRENT / ORDERING — If function has state, test ordering
  6. AUTHORIZATION BOUNDARIES — Does it enforce who can call it?
  7. ADVERSARIAL INPUTS — SQL fragments, script tags, path traversal, unicode, emoji, null bytes, extremely long strings

Workflow

  • Check off each category as you implement tests
  • Document which categories don't apply and why
  • Flag any gaps in coverage with rationale

snoodleboot-io/prompticorn commit 24ee75a515

Frequently asked questions

npx get-skill add snoodleboot-io/test-coverage-categories-2