test-coverage

Generates missing unit and integration tests to raise code coverage to 80% or higher using coverage-summary.json.

11|2|Updated Aug 1, 2025
One-click install
npx skills add https://github.com/sc30gsw/claude-code-customes --skill test-coverage-sc30gsw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-coverage
Source: https://github.com/sc30gsw/claude-code-customes/tree/main/.claude/skills/test-coverage
Command: npx skills add https://github.com/sc30gsw/claude-code-customes --skill test-coverage-sc30gsw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identifies gaps in test coverage and generates missing tests to push overall coverage to 80% or higher, saving time and reducing risk from untested code.

Core Features & Use Cases

  • Automated gap analysis using coverage reports (coverage/coverage-summary.json)
  • Test generation for untested code paths, including unit and integration tests
  • Validation by re-running tests and reporting before/after coverage

Quick Start

Run the workflow to scan coverage, generate missing tests, and verify that the overall coverage reaches 80%.

Frequently Asked Questions about test-coverage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate missing tests to improve code coverage?

To automatically generate missing tests and improve code coverage, you need an existing test suite and a coverage report. The tool scans coverage gaps, creates missing unit and integration tests, and validates results to push overall coverage above 80%.

Can I generate tests for JavaScript and TypeScript projects with existing test suites?

Yes, you can generate tests for JavaScript and TypeScript projects. The workflow targets projects with existing test suites, using coverage-summary.json to identify untested code paths and automatically generate meaningful unit and integration tests.

Do I need a running test command to identify and close test coverage gaps?

Yes, a running test command like npm test or pnpm test is required to identify and close test coverage gaps. The tool executes this command to validate the generated missing tests and report the before and after coverage metrics.

What is the best way to reach 80% test coverage in an untested codebase?

The best way to reach 80% test coverage is to automate gap analysis using coverage-summary.json. By generating missing unit and integration tests for untested code paths and re-running the test command, you can systematically raise overall project coverage.

How does automated testing automation handle coverage validation after generating tests?

Automated testing automation handles coverage validation by re-running your test command after generating the missing tests. It reports the before and after coverage metrics to verify that the newly created tests successfully close the identified gaps.