Skip to content
Back to skills

Test Coverage

ASecurity

Runs coverage report, identifies untested code, and generates missing tests

  • 10 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added May 27, 2026
data-aigobashapi

Works with

  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill test-coverage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Coverage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test Coverage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-test-coverage/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-test-coverage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-coverage
description: Runs coverage report, identifies untested code, and generates missing tests
user-invocable: true
allowed-tools: Bash Read Glob Edit
effort: medium
---

## Test Coverage Analysis

1. Run coverage:
```bash
# Detect test runner from package.json
cat package.json | grep -E '"test"|"coverage"'
```
Then run the appropriate coverage command (e.g., `bun test --coverage`, `npx jest --coverage`, `go test ./... -cover`).

2. Parse results and find:
   - Overall coverage percentage
   - Files below 80% coverage
   - Uncovered functions/branches (not just lines)

3. For the 3 most under-tested files:
   - Read the file
   - Identify exactly which branches/conditions are untested
   - Generate tests to cover them

4. Report:
```
Coverage: X% (was Y% if previous data available)

Files needing attention:
  src/auth/token.ts       42% → generated 8 tests
  src/utils/format.ts     61% → generated 4 tests
  src/api/handler.ts      70% → generated 3 tests
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…