Skip to content
Back to skills

Check Coverage

ASecurity

Use to check test coverage or find untested code paths.

  • 443 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
testingshellbashgitapi

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add TypedDevs/bashunit --skill check-coverage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check Coverage?

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

Security grade badge for Check Coverage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/typeddevs-check-coverage/badge)](https://www.skillsdirectory.com/skills/typeddevs-check-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: check-coverage
description: Use to check test coverage or find untested code paths.
allowed-tools: [read, shell, Grep, Glob]
---

# Check coverage

Repository paths are relative to the repository root. Measure the requested scope with `./bashunit --coverage <test-path>`. For broad coverage, follow `.github/workflows/coverage.yml`: exclude `tests/unit/coverage/` meta-tests and fixtures, then measure the selected unit tests with `--coverage-paths src`. Running coverage meta-tests under coverage double-instruments the engine and corrupts their assertions. Keep analysis separate from any later implementation gate.

1. Map functions under `src/` to direct tests and observed coverage. Search definitions with `rg '^function ' src/` and usages of each relevant name under `tests/`. Public assertions may lack the `bashunit::` prefix; inspect the public assertion and API surfaces and their loaded module entrypoints. A text match alone does not prove a test executes a function.
2. Classify each relevant function as well tested, partially tested, or untested using success, edge, and failure-path evidence. State instrumentation limits, including shell-version differences, before treating an uncovered line as a missing test.
3. Prioritize public APIs without tests, error paths, then complex conditionals. Aim for 90%+ public API coverage and tests for user-facing commands and error paths; trivial internal helpers are lower priority.
4. Report measured totals and coverage by module, gaps with file and line evidence, and specific proposed test cases. Separate measured percentages from estimates. Do not change production code or tests unless the request includes implementation.

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.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.