Back to Cline

Generate Test Coverage Report

sdk/examples/cron/test-coverage-report.cron.md

3.83.0764 B
Original Source

Run test suite and generate a coverage report:

  1. Run the full test suite: npm test or equivalent
  2. Generate coverage report in JSON format: npm run test:coverage
  3. Parse the coverage data to identify:
    • Overall coverage percentage (lines, branches, functions, statements)
    • Files with coverage below 80%
    • Files with coverage below 50% (critical)
    • Coverage trends (if previous reports exist)

Create a markdown summary showing:

  • Overall coverage metrics with visual progress bars
  • Top 5 files needing coverage improvements
  • Test results: total tests, passed, failed, skipped
  • Recommendations for improving test coverage

Include emoji indicators for health status:

  • 🟢 Excellent (>90%)
  • 🟡 Good (70-90%)
  • 🔴 Needs attention (<70%)