本文へ移動
cccskills
無料GitHub で公開

check-coverage

Analyze test coverage and identify untested code paths

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Check Coverage

Analyze test coverage and identify gaps.

Workflow

1. Run Coverage (if available)

BASHUNIT_COVERAGE=true ./bashunit tests/

2. Map Functions to Tests

For each file in src/:

# 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)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Add new assertion function with comprehensive tests following TDD

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

commit

無料

Stage and commit changes using conventional commits format

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

fix-test

無料

Debug and fix failing tests systematically

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

gh-issue

無料

Fetch GitHub issue, create branch, plan and implement with TDD, then open PR

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

gh-issues

無料

Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

pr

無料

Push branch and create a GitHub PR with concise, issue-linked description

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

TypedDevs のスキルをすべて見る

このスキルの問題を報告する