1
    πŸ§ͺ Test Quality Auditor

    πŸ§ͺ Test Quality Auditor

    Find the unit tests that pass without testing anything. Flags tests with no assertions, trivial existence-only checks (toBeDefined, assertIsNotNone), tests that assert the exact value they just mocked, snapshot-only tests, tautological assertions (expect(true).toBe(true)), empty placeholders, and over-mocked tests with more setup than assertions. Works on Jest/Vitest and pytest/unittest.

    Updated Jun 2026
    Security scanned
    Cursor

    $15

    Β· or 75 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Included in download

    • Detect tests that pass without actually asserting any logic.
    • Identify "mock-only" checks where the test confirms its own setup.
    • network, terminal, file_read automation included
    • Ready for Cursor
    • Instant install

    Sample input

    Audit my recent unit tests in the services/ directory to see if they are actually effective or just inflating coverage.

    Sample output

    Test Quality Audit Results

    File: services/auth.service.spec.ts Line: 42 Issue: [TAUTOLOGY] High Severity Evidence: expect(mockUser).toBe(mockUser) Remediation: Test is asserting the input mock instead of the service return value. Update to assert actual output.

    About This Skill

    What it does

    The Test Quality Auditor is a specialized diagnostic tool designed to uncover "security theater" in your test suite. It identifies tests that pass but provide zero actual verification, such as tests with missing assertions, tautological checks, or tests that accidentally assert the behavior of a mock rather than the system under test.

    Why use this skill

    High test coverage numbers often hide poor test quality. This skill goes beyond simple coverage metrics to find tests that give a false sense of security. It saves developers hours of manual code review by automatically flagging trivial assertions, over-mocking ratios, and placeholder tests that should have been deleted or finished.

    Supported tools

    • Languages: JavaScript, TypeScript, and Python.
    • Frameworks: Compatible with standard runners like Jest, Vitest, and Pytest.
    • Output: Provides structured reports including severity levels, specific line numbers, and actionable remediation guidance.

    The Output

    The auditor produces a detailed report for each flagged test, highlighting the specific evidence of poor quality and providing a clear path to fix it, ensuring your test suite becomes a reliable safety net.

    Use Cases

    • Detect tests that pass without actually asserting any logic.
    • Identify "mock-only" checks where the test confirms its own setup.
    • Find over-mocked tests that provide a high ratio of mocks to actual code.
    • Surface placeholder tests and empty snapshot tests before they reach production.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Network Access
    Terminal / Shell
    Read Files

    File Scopes

    test-quality-auditor/**
    **/*.test.js
    **/*.test.jsx
    **/*.test.ts
    **/*.test.tsx
    **/*.spec.js
    **/*.spec.jsx
    **/*.spec.ts
    **/*.spec.tsx
    **/test_*.py
    **/*_test.py
    **/tests/**/*.py

    Notes: Read-only. Prints each finding with rule id, severity, file, and line. Writes nothing and reads no environment variables.

    Works with any agent that can read a repo and run a local Python script (Claude Code, Cursor, Codex CLI, and other SKILL.md-compatible agents). Standard library only, no install step. Read-only.

    Frequently Asked Questions

    $15