test-coverage
Analyze and improve test coverage with comprehensive reporting and gap identification
وصف مستورد لم يراجعه محرر بعد
جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.
التنزيل
التثبيت
بعد التنزيل، شغّل الأمر في الطرفية. يسأل unzip قبل أن يستبدل أي ملف موجود.
لهذا المشروع
يوضع في: .claude/commands/
mkdir -p .claude/commands && unzip ~/Downloads/test-coverage.zip -d .claude/commandsلحسابك على الجهاز كله
يوضع في: ~/.claude/commands/
mkdir -p ~/.claude/commands && unzip ~/Downloads/test-coverage.zip -d ~/.claude/commands
التعليمات
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 -ltest 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:
- Coverage Tool Setup - Configure appropriate tools (Jest, NYC, Istanbul, Coverage.py, JaCoCo), setup collection settings, optimize performance, enable reporting
- Coverage Measurement - Generate line coverage, branch coverage, function coverage, statement coverage reports, identify uncovered code paths
- Gap Analysis - Identify critical uncovered paths, analyze coverage quality, assess business logic coverage, evaluate edge case handling
- Threshold Management - Configure coverage thresholds, implement quality gates, setup trend monitoring, enforce minimum standards
- Reporting & Visualization - Generate detailed reports, create coverage dashboards, implement trend analysis, setup automated notifications
- 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.
الملفات
- LICENSE1 ك.ب
- test-coverage.md2.4 ك.ب
ما وجده الفحص الآلي
فحصنا الملفات آلياً وقت الاستيراد. هذا ما نبّه إليه الفحص، ولا يعني أن العنصر ضار ولا أنه سليم: اقرأه بنفسك.
- يحتاج مراجعةأدوات مسموحة بلا حدود
في الملف cli-tool/components/commands/testing/test-coverage.md
التعليقات (0)
لا تعليقات بعد. كن أول من يعلّق.
سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).