Test Coverage Report for Openclaw

Analyze test coverage gaps by comparing test files against source modules to identify untested code paths and critical functions.

jk625x
v1.0.4
Jun 4, 2026
0
529
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ljkhlk

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ljkhlk using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Test Coverage Report?

The Test Coverage Report skill provides a comprehensive analysis of test coverage gaps by mapping source modules to their corresponding test files based on standard naming conventions. It allows development teams and autonomous workflows to evaluate test coverage intelligently, ensuring that critical business logic, public APIs, and complex internal states remain thoroughly validated.

By leveraging the advanced structural scanning capabilities of Openclaw Skills, this tool goes beyond basic line-coverage metrics. It dynamically identifies unmapped source files, flags orphaned test files, and inspects exported classes and functions to spot precise locations where test assertions are entirely missing.

Test Coverage Report Use Cases

  • Discovering source code modules that have zero corresponding unit or integration test files.
  • Finding orphaned test files that import from stale or deleted source modules after refactoring.
  • Reviewing public API handlers and data mutation functions that lack test suites prior to a production release.
  • Generating automated test blueprints and structured test outlines for existing uncovered code bases.

How Test Coverage Report Works

  1. Scan the codebase filesystem to map source files to test files using conventional patterns like .test.ts, .spec.ts, and __tests__/ directories.
  2. Cross-reference imported dependencies within test files against active source modules to find orphaned test suites.
  3. Analyze exported functions, classes, and handlers within each source file to determine specific coverage gaps.
  4. Apply a structured risk scoring matrix to prioritize gaps based on public exposure, data impact, and usage depth.
  5. Generate an actionable coverage gap report categorized by risk with ready-to-implement test outlines.

Test Coverage Report Setup

To integrate this capability into your workspace, ensure you have the appropriate runner installed. Execute the configuration command within your Openclaw Skills environment:

openclaw skill install test-coverage-report

Ensure that the runtime environment grants the skill standard filesystem read access and shell execution permissions to process the directory structures.

Test Coverage Report Data Schema & Taxonomy

The skill evaluates files across the workspace and computes structural risk based on the following taxonomy:

Risk Level Target Criteria Impacted Components
Critical Public API Handlers Public endpoints and external entry points lacking any test coverage.
High Data Mutation Functions Functions managing state or database updates (create, update, delete) without tests.
Medium Utility Functions Core shared utilities utilized by multiple distinct modules lacking dedicated tests.
Low Internal Helpers Internal helper functions containing a single caller within the module boundary.

Test Coverage Report Advanced Features

  • Smart file mapping using flexible matching algorithms for modern TypeScript and JavaScript testing conventions.
  • Context-aware automated test outlines tailored specifically to the signature of untested functions.
  • Multi-level risk categorization matrix for rapid identification of high-impact technical debt.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*