Branch: refs/heads/jacoco-sheet-api-coverage Home: https://github.com/xwiki/xwiki-platform Commit: 94c42300a99bff157fa465c940be97d06687a0cb https://github.com/xwiki/xwiki-platform/commit/94c42300a99bff157fa465c940be9... Author: Vincent Massol <[email protected]> Date: 2026-08-02 (Sun, 02 Aug 2026) Changed paths: M xwiki-platform-core/xwiki-platform-sheet/xwiki-platform-sheet-api/pom.xml M xwiki-platform-core/xwiki-platform-sheet/xwiki-platform-sheet-api/src/test/java/org/xwiki/sheet/internal/DefaultSheetManagerTest.java M xwiki-platform-core/xwiki-platform-sheet/xwiki-platform-sheet-api/src/test/java/org/xwiki/sheet/internal/SheetDocumentDisplayerTest.java A xwiki-platform-core/xwiki-platform-sheet/xwiki-platform-sheet-api/src/test/java/org/xwiki/sheet/internal/SheetRequestInitializerTest.java Log Message: ----------- [Misc] Fix the JaCoCo coverage failure of xwiki-platform-sheet-api The logging best-practices pass added `ExceptionUtils.getRootCauseMessage()` calls to two error handlers that no test exercised, so the module's instruction coverage dropped to 0.80 while its `xwiki.jacoco.instructionRatio` demanded 0.81. Rather than lower the expectation, the uncovered paths are now tested: * `DefaultSheetManager`: a class document that fails to load contributes no sheet, a sheet whose existence can't be checked is not matched, and document sheets matching the action are returned. * `SheetDocumentDisplayer`: the default displayer is used when the sheet is the document itself, when the sheet doesn't control the displayed title, and when applying the sheet fails. * `SheetRequestInitializer`: new test class; it had no coverage at all. Instruction coverage goes from 0.80 to 0.97, and the ratio is raised to lock that in. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications