feat: per-module detail in the coverage comment#141
Conversation
Replace the terse Lines/Branches-only table with a section per module that lists all five JaCoCo counters (Line, Branch, Instruction, Method, Class) with covered/missed counts, matching the richer report format used by hand-rolled pipelines. The overall total line is kept for an at-a-glance summary. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe CI workflow's inline Python coverage-comment script is updated to produce per-file Markdown sections with a multi-metric table (LINE, BRANCH, INSTRUCTION, METHOD, CLASS), each showing coverage percentage plus covered/missed counts. The final Markdown body assembly is updated to embed these sections instead of the previous compact rows table. ChangesCoverage Comment Enrichment
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Test Results (spring-skeleton)1 tests 1 ✅ 2s ⏱️ Results for commit 4308ba2. ♻️ This comment has been updated with latest results. |
Test Results (KTOR-SKELETON)2 tests 2 ✅ 2s ⏱️ Results for commit 4308ba2. ♻️ This comment has been updated with latest results. |
Enriches the coverage comment added in #140. Instead of a single Lines/Branches table, each module now gets its own section with all five JaCoCo counters (Line, Branch, Instruction, Method, Class) plus covered/missed counts — matching the richer per-module format used by hand-rolled pipelines (e.g. agent-desk). The overall Total line is kept.
Still JaCoCo/Kover-agnostic, still no-op when no reports match, still gated to same-repo PRs. Verified locally against a real multi-module set (beat-the-machine domain/application/adapters).
Note: per-module artifact links (as agent-desk has) aren't included — the shared workflow uploads a single combined JaCoCo HTML bundle rather than per-module artifacts, so generic per-module links don't map cleanly. Can be a follow-up if wanted.
Summary by CodeRabbit