test: enforce 100% runtime line coverage - #18
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe pull request adds Maven test and coverage configuration, tests for existing plugin and world-border behaviour, documentation of coverage requirements, and a build-workflow upload for the JaCoCo report. ChangesTest coverage and validation
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Other Merge Risk: ⚪ Minimal · up to This change adds tests and a coverage gate without altering runtime behavior. No concrete merge-blocking issue was found.
Comment |
WorldBorder had no tests and 0/207 covered executable lines. Add 79 behavioral tests covering region boundaries, player warnings and damage, scheduling, permissions, commands, configuration loading, and plugin lifecycle/resource failures. The suite now covers 207/207 production lines without exclusions.
mvn clean verifynow enforces zero missed production lines, fails if no tests run, and preserves the Mockito and JaCoCo agents. CI uploads the HTML/XML coverage reports; README documents the metric. No production behavior changes were needed in this repository.Validation: Java 21 Maven
clean verify/verify, 79 tests passed with no failures or skips; runtime JAR filename/version check passed. JaCoCo: lines 207/207 (100%), instructions 767/769 (99.74%), branches 79/81 (97.53%). The enforced coverage metric is executable lines.Part of the four lowest runtime-coverage repositories selected from the active workspace, excluding CoreProtect as requested. Any review fixes stay in this PR.