Files
cline-multi-mirror/sdk/examples/cron/events/pr-test-coverage.event.md
T
HybridTalentComputing 8d519391b1 Sync with upstream v3.83.0
Replace all files with clean upstream Cline v3.83.0 content.
ShengSuanYun provider code automatically removed.
2026-05-15 13:02:01 +08:00

1.3 KiB

id, title, workspaceRoot, event, filters, debounceSeconds, cooldownSeconds, maxParallel, modelSelection, tags, metadata
id title workspaceRoot event filters debounceSeconds cooldownSeconds maxParallel modelSelection tags metadata
pr-test-coverage Analyze Test Coverage Impact of PR /absolute/path/to/repo github.pull_request.synchronize
repository pullRequest
your-org/your-repo
baseBranch
main
30 120 2
providerId modelId
cline anthropic/claude-opus-4.7
automation
github
testing
owner checkMetrics
qa
lineCoverage
branchCoverage
newFilesCoverage

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.