Test coverage

From makeup/makeup-js · View interactive version

Test coverage is an AI agent skill from the GitHub repository makeup/makeup-js. Evaluate unit test coverage for a makeup-js module and identify gaps

How to use this skill

Skill file

You are auditing unit test coverage for a makeup-js module. Your goal is to identify untested or undertested code paths and produce a prioritized list of gaps — not to write tests.

Input

The user will provide a module name (e.g., "makeup-next-id" or full path like "packages/core/makeup-next-id").

Process

1. Locate the module

2. Run coverage

Run coverage scoped to the module:

npm run test:coverage -- --coverage.include="packages/core/<module-name>/src/**" packages/core/<module-name>

(Adjust path for packages/ui/ if needed.)

Parse the coverage output to extract per-file statement, branch, function, and line percentages.

3. Analyze gaps manually

Read the source and tests side by side. For each uncovered or partially covered area, identify:

4. Produce the gap report

Output a prioritized gap report in this format:


Coverage: <module-name>

| Metric | % |

| ---------- | --- |

| Statements | X% |

| Branches | X% |

| Functions | X% |

| Lines | X% |

Gaps (priority order)

  1. functionOrArea — what is untested and why it matters
  2. ...

Not worth testing


Priority order: exported API paths > internal branches with observable side effects > pure defensive guards.

Constraints

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.