Skip to content
CommandImported

test-coverage

Analyze and improve test coverage with comprehensive reporting and gap identification

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 3.4 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/test-coverage.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/test-coverage.zip -d ~/.claude/commands

Instructions

Test Coverage

Analyze and improve test coverage with detailed reporting and gap analysis: $ARGUMENTS

Current Coverage Context

  • Test framework: !find . -name "jest.config.*" -o -name ".nycrc*" -o -name "coverage.xml" | head -1 || echo "Detect framework"
  • Coverage tools: !npm ls nyc jest @jest/core 2>/dev/null | grep -E "nyc|jest" | head -2 || echo "No JS coverage tools"
  • Existing coverage: !find . -name "coverage" -type d | head -1 && echo "Coverage data exists" || echo "No coverage data"
  • Test files: !find . -name "*.test.*" -o -name "*.spec.*" | wc -l test files

Task

Execute comprehensive coverage analysis with improvement recommendations and reporting:

Coverage Type: Use $ARGUMENTS to focus on line coverage, branch coverage, function coverage, statement coverage, or comprehensive reporting

Coverage Analysis Framework:

  1. Coverage Tool Setup - Configure appropriate tools (Jest, NYC, Istanbul, Coverage.py, JaCoCo), setup collection settings, optimize performance, enable reporting
  2. Coverage Measurement - Generate line coverage, branch coverage, function coverage, statement coverage reports, identify uncovered code paths
  3. Gap Analysis - Identify critical uncovered paths, analyze coverage quality, assess business logic coverage, evaluate edge case handling
  4. Threshold Management - Configure coverage thresholds, implement quality gates, setup trend monitoring, enforce minimum standards
  5. Reporting & Visualization - Generate detailed reports, create coverage dashboards, implement trend analysis, setup automated notifications
  6. Improvement Planning - Prioritize coverage gaps, recommend test additions, identify refactoring opportunities, plan coverage enhancement

Advanced Features: Differential coverage analysis, coverage trend monitoring, integration with code review, automated coverage alerts, performance impact assessment.

Quality Insights: Coverage quality assessment, test effectiveness analysis, maintainability correlation, risk area identification.

Output: Comprehensive coverage analysis with detailed reports, gap identification, improvement recommendations, and quality metrics tracking.

Files

  • LICENSE1 KB
  • test-coverage.md2.4 KB

What the automatic scan found

We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.

  • Needs a lookAllowed tools with no limits

    In file cli-tool/components/commands/testing/test-coverage.md

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • CommandImported

    add-mutation-testing

    Setup comprehensive mutation testing with framework selection and CI integration

    MITFiles: 1

  • CommandImported

    add-property-based-testing

    Implement property-based testing with framework selection and invariant identification

    MITFiles: 1

  • CommandImported

    ai-review

    Run an AI-assisted code review that combines static analysis tools with AI review of security, performance, and architecture

    MITFiles: 1

  • CommandImported

    code-permutation-tester

    Test multiple code variations through simulation before implementation with quality gates and performance prediction.

    MITFiles: 1

  • CommandImported

    create-feature

    Scaffold new feature with boilerplate code, tests, and documentation

    MITFiles: 1

  • CommandImported

    decision-quality-analyzer

    Analyze team decision quality with bias detection, scenario testing, and process improvement recommendations

    MITFiles: 1