Back to Cline

Analyze Test Coverage Impact of PR

sdk/examples/cron/events/pr-test-coverage.event.md

3.83.0866 B
Original Source

Analyze test coverage impact when a PR is updated:

  1. Checkout the PR branch

  2. Run test coverage: npm run test:coverage

  3. Compare coverage to main branch:

    • Lines added with coverage
    • Lines added without coverage
    • Files with decreased coverage
    • New files with low coverage
  4. Generate a coverage impact report showing:

    • Coverage change percentage
    • Files with added uncovered code
    • Critical gaps in new functionality
    • Suggestions for missing tests
  5. Post results as PR comment with:

    • Overall coverage impact (↑ or ↓)
    • File-by-file breakdown
    • Specific line ranges needing tests
    • Recommendations for test additions

Color code the feedback:

  • 🟢 Coverage improved
  • 🟡 Coverage maintained
  • 🔴 Coverage decreased
  • ⚫ New code without tests

Help maintain test quality standards without blocking the PR.