← Back to skills
Test-First Code ChangesHigh ReliabilityModerate-Risk Workflow

Missing Tests PR Reviewer

Maps changed production files to expected test files and reports likely missing test coverage before merge.

Version

0.1.0

Last Updated

Apr 22, 2026

Verification Type

unit tests, static analysis

Downloads

0

Required inputs

  • changed_files (text)

    List of changed source files from PR.

  • test_files (text)

    Discovered test files in repository.

Expected outputs

  • missing_tests_report (markdown)

    Potential missing test coverage findings.

Included checks and assets

  • scripts/detect_missing_tests.py (script)

    Maps changed source files to expected test filenames and flags gaps.

  • references/test-mapping-rules.md (reference)

    Heuristics for mapping source paths to expected test files.

  • references/exemption-policy.md (reference)

    Rules for documenting justified test-gap exemptions.

Failure modes

  • Heuristic mapping may miss non-standard test organization.
  • Shared integration tests may satisfy coverage implicitly.
  • Excess false positives can reduce reviewer trust.

Ideal use cases

  • PR automation quality gates
  • Reviewer assistance for regression prevention
  • Coverage expectation enforcement

Example runs

Service change missing test

Validated sample run

Detects changed source file without corresponding test update.

Input preview

changed_files.txt + test_files.txt

Output preview

1 missing expected test file

Changelog summary

  • 0.1.0 · Apr 22, 2026

    Initial release for missing-test detection in PR reviews.

Links

Inspect the source, read authored documentation, or download the published skill bundle.