Test Coverage Reviewer

Reviews test files for meaningful assertions, edge case coverage, and cargo-cult patterns.

1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/htxryan/claude-code-config-profiles --skill test-coverage-reviewer-htxryan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Test Coverage Reviewer
Source: https://github.com/htxryan/claude-code-config-profiles/tree/main/.agents/skills/compound/agents/test-coverage-reviewer
Command: npx skills add https://github.com/htxryan/claude-code-config-profiles --skill test-coverage-reviewer-htxryan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Test suites often contain tests that pass regardless of implementation correctness, lack edge case coverage, or mock away the very logic they should verify. This Skill reviews test files to ensure they actually verify behavior rather than merely running without errors. ## Core Features & Use Cases - Assertion Quality Review: Detects cargo-cult tests, weak assertions, and tests that would pass even with broken implementations. - Edge Case & Integration Gap Detection: Flags missing boundary cases and distinguishes unit tests from integration tests, catching fidelity gaps like SQLite substituting for PostgreSQL. - Use Case: During a code review phase, an agent team spawns this reviewer to audit every test file in parallel, classifying each as CARGO-CULT, GAP, WEAK, or GOOD and routing cross-cutting findings to security or simplicity reviewers. ## Quick Start Ask the reviewer to audit the test files in your project and report any cargo-cult tests, missing edge cases, or weak assertions.

Frequently Asked Questions about Test Coverage Reviewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review test quality and coverage in a codebase?▼

Read each test file completely and verify every test has meaningful assertions that would fail if the implementation were wrong. Check for missing edge cases like empty inputs, nulls, and boundaries, and confirm test names describe expected behavior.

What are cargo-cult tests and how do I detect them?▼

Cargo-cult tests pass regardless of whether the implementation is correct, often containing trivial assertions like expect(true). Detect them by checking whether each test would actually fail if the code under test were broken.

Should I use SQLite instead of PostgreSQL for testing?▼

Substituting SQLite in-memory for PostgreSQL or MySQL is a test fidelity gap. Code touching databases needs integration tests with real connections, using patterns like Testcontainers or transaction rollback rather than mocked queries.

When should tests use mocks versus real integrations?▼

Never mock the business logic being tested, such as using vi.mock on the unit under test. Code touching databases, APIs, or external services needs integration tests with real connections, while mocks suit only true external boundaries.

How do I review many test files efficiently?▼

For large test suites, spawn parallel subagents to review one test file each, then aggregate findings. Classify each result as CARGO-CULT, GAP, WEAK, or GOOD and route cross-cutting issues to security or simplicity reviewers.