Test Coverage Analysis

Analyzes and enforces Jest test coverage thresholds with HTML and JSON reports.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Coverage-Creatives/zeus --skill test-coverage-analysis-coverage-creatives
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Test Coverage Analysis
Source: https://github.com/Coverage-Creatives/zeus/tree/main/.windsurf/test-coverage-analysis
Command: npx skills add https://github.com/Coverage-Creatives/zeus --skill test-coverage-analysis-coverage-creatives

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that your codebase has adequate test coverage, preventing regressions and identifying areas that lack sufficient testing.

Core Features & Use Cases

  • Threshold Enforcement: Define and enforce minimum coverage percentages for branches, functions, and lines.
  • Report Generation: Creates detailed HTML and JSON reports of test coverage.
  • Use Case: Automatically fail a pull request if the new code introduced drops the overall line coverage below 80%.

Quick Start

Configure Jest to collect and report test coverage for your project.

Frequently Asked Questions about Test Coverage Analysis

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

FAQPage Schema
How do I enforce Jest test coverage thresholds to prevent merging untested code?

Jest test coverage thresholds enforce minimum coverage percentages for branches, functions, and lines. You can configure these settings to automatically fail pull requests when new code drops overall line coverage below your defined minimum requirements.

Can I generate HTML and JSON coverage reports for CI/CD integration?

Yes, you can generate detailed test coverage reports in both HTML and JSON formats. These reports provide comprehensive coverage insights and are designed specifically for CI/CD integration and quality gating in your software engineering pipeline.

What's the best way to identify code modules lacking sufficient test coverage?

Analyzing test coverage reports across code modules identifies areas lacking sufficient testing. By collecting coverage metrics with Jest and generating detailed reports, you can pinpoint exactly which branches, functions, and lines require additional tests to prevent regressions.

Does configuring Jest coverage collection require any additional dependencies?

Configuring Jest coverage collection requires no additional dependencies beyond Jest itself. You only need to configure Jest's built-in coverage collection and threshold settings to start analyzing and enforcing test coverage across your codebase.

Why use test coverage quality gating instead of relying solely on passing tests?

Test coverage quality gating prevents regressions by ensuring adequate test coverage across your codebase. While passing tests validate functionality, coverage thresholds enforce that all branches, functions, and lines are actually tested, identifying untested code paths that could hide future defects.

How do I fail a CI/CD pipeline automatically when test coverage drops?

To fail a CI/CD pipeline automatically when test coverage drops, configure Jest threshold enforcement with minimum coverage percentages. When overall line, branch, or function coverage falls below your defined thresholds, the test run fails and blocks the pipeline from proceeding.