Analyze test coverage and identify untested code paths
Scanned 9/12/2026
Install to Claude Code
npx -y skills add TypedDevs/bashunit --skill check-coverage --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Check Coverage?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/typeddevs-check-coverage)More formats (shields.io, HTML) on the badges page.
---
name: check-coverage
description: Analyze test coverage and identify untested code paths
allowed-tools: Read, Bash, Grep, Glob
---
# Check Coverage
Analyze test coverage and identify gaps.
## Workflow
### 1. Run Coverage (if available)
```bash
BASHUNIT_COVERAGE=true ./bashunit tests/
```
### 2. Map Functions to Tests
For each file in `src/`:
```bash
# List all public functions
grep "^function bashunit::" src/module.sh
# Find tests referencing each function
grep -r "function_name" tests/
```
### 3. Categorize Coverage
- **Well tested** — multiple tests, edge cases covered
- **Partially tested** — basic test exists, missing edge cases
- **Not tested** — no tests found
### 4. Identify Critical Gaps
**Priority 1:** Public API functions (`export -f`) with no tests
**Priority 2:** Error handling paths (`return 1`, `exit 1`) not tested
**Priority 3:** Complex conditionals without branch coverage
### 5. Generate Report
Output a markdown report with:
- Summary (total functions, tested count, estimated %)
- Coverage by module
- Critical gaps with file:line references
- Recommended tests to add (specific test function names)
## Coverage Goals
- 90%+ for public functions
- All user-facing CLI commands tested
- All error paths tested
- Internal helpers: optional (if trivial)
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Practical guide to testing web applications with screen readers for comprehensive accessibility validation.
使用pytest、TDD方法、夹具、模拟、参数化和覆盖率要求的Python测试策略。
Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。
Django测试策略,包括pytest-django、TDD方法论、factory_boy、模拟、覆盖率以及测试Django REST Framework API。
克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则