Test review

From edictum-ai/edictum · View interactive version

Test review is an AI agent skill from the GitHub repository edictum-ai/edictum. Audit tests for missing edge cases after writing or reviewing test code. Use PROACTIVELY after implementing features or writing tests. Also available as /test-review.

How to use this skill

Skill file

Test Review — Edge Case Audit

Systematic second-pass review of tests after implementation. Catches the gaps that first-pass test writing consistently misses.

When to use

Arguments

Step 1: Identify scope

Determine what was implemented and what tests exist:

  1. Find changed source files:

```

Bash: git diff main...HEAD --name-only -- 'src/'

```

  1. Find changed/new test files:

```

Bash: git diff main...HEAD --name-only -- 'tests/'

```

  1. Read each changed source file to understand the new/modified code paths
  2. Read each test file to understand current coverage

Step 2: Run the edge case checklist

For every new function, method, class, or code path, systematically check each category. Do not skip categories — the value is in the exhaustive scan.

Category 1: Boundary Values

Category 2: Type Coercion and Representation

Category 3: State and Mutation

Category 4: Cross-Feature Interaction

Category 5: Error Paths and Degradation

Category 6: User-Facing Outputs

Category 7: Documented Non-Behavior

Step 3: Generate missing test cases

For each gap found, write a specific test case description:

MISSING: [Category] — [Description]
  File: tests/test_xxx.py
  Test: test_[descriptive_name]
  Why:  [What could go wrong without this test]

Group by priority:

  1. P0 — Correctness: Could cause wrong behavior in production
  2. P1 — Robustness: Edge cases that real users will hit
  3. P2 — Completeness: Nice to have, documents behavior

Step 4: Write the tests

For each missing test case (P0 and P1 at minimum):

  1. Write the test in the appropriate test file
  2. Follow existing test patterns and conventions in the file
  3. Run the new tests to verify they pass:

```

Bash: pytest {test_file} -v --tb=short -k {test_name}

```

Step 5: Final verification

Bash: pytest tests/ -v --tb=short
Bash: ruff check src/ tests/

Step 6: Report

Summarize:

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.