Skip to content

fix(ci): add SonarCloud coverage report path configuration#482

Merged
lukaszlenart merged 1 commit intomainfrom
fix/sonarcloud-coverage-config
Nov 4, 2025
Merged

fix(ci): add SonarCloud coverage report path configuration#482
lukaszlenart merged 1 commit intomainfrom
fix/sonarcloud-coverage-config

Conversation

@lukaszlenart
Copy link
Copy Markdown
Collaborator

@lukaszlenart lukaszlenart commented Nov 4, 2025

Summary

Fixes the issue where SonarCloud was reporting 0% code coverage despite tests running with coverage enabled.

Changes

  • Added sonar.coverage.jacoco.xmlReportPaths property to root pom.xml pointing to the JaCoCo XML report location in the ognl module

Root Cause

In multi-module Maven projects, SonarCloud needs explicit configuration to locate JaCoCo coverage reports. Without the sonar.coverage.jacoco.xmlReportPaths property, SonarCloud cannot find the generated coverage data.

Impact

  • SonarCloud will now correctly import coverage data from the ognl module
  • Coverage metrics will appear on the SonarCloud dashboard
  • Future PRs will show accurate code coverage percentages

Test Plan

  • Configuration change verified in root pom.xml
  • Wait for CI workflow to complete and verify SonarCloud imports coverage
  • Check SonarCloud dashboard shows non-zero coverage percentage

🤖 Generated with Claude Code

Configure sonar.coverage.jacoco.xmlReportPaths property to point
SonarCloud to the JaCoCo XML report location in the ognl module.
This resolves the issue where SonarCloud was reporting 0% coverage
despite tests running with coverage enabled.

Fixes #481

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Nov 4, 2025

@lukaszlenart lukaszlenart merged commit d21ab2f into main Nov 4, 2025
5 checks passed
@lukaszlenart lukaszlenart deleted the fix/sonarcloud-coverage-config branch November 4, 2025 09:32
@lukaszlenart lukaszlenart added this to the 3.5.0 milestone Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant