Skip to content

build: Switch to use Android's Native coverage check - #322

Merged
itachi1706 merged 1 commit into
masterfrom
jacoco-updates
Apr 23, 2026
Merged

build: Switch to use Android's Native coverage check#322
itachi1706 merged 1 commit into
masterfrom
jacoco-updates

Conversation

@itachi1706

Copy link
Copy Markdown
Owner

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the manual JaCoCo report task and the JaCoCo plugin, transitioning to SonarQube's built-in coverage reporting. Feedback was provided regarding the SonarQube configuration in build.gradle.kts, specifically noting that sonar.java.binaries does not support wildcards and is missing Kotlin class paths. It was also suggested to explicitly define sonar.sources and migrate coverage exclusions to sonar.coverage.exclusions to maintain report accuracy.

Comment thread build.gradle.kts
property("sonar.tests", "src/test/java,src/test/kotlin")
property("sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml")
property("sonar.coverage.jacoco.xmlReportPaths", "**/build/reports/coverage/test/debug/report.xml")
property("sonar.java.binaries", "**/build/intermediates/javac/*/classes")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The sonar.java.binaries property generally does not support wildcards and should point to specific directories. It is also missing the path to compiled Kotlin classes. Additionally, you should explicitly define sonar.sources to include Kotlin files and migrate the previous coverage exclusions (like R classes and BuildConfig) to sonar.coverage.exclusions to ensure the report remains accurate and consistent with the previous configuration.

        property("sonar.sources", "helperlib/src/main/java,helperlib/src/main/kotlin")
        property("sonar.java.binaries", "helperlib/build/intermediates/javac/debug/classes,helperlib/build/tmp/kotlin-classes/debug")
        property("sonar.coverage.exclusions", "**/R.class,**/R$*.class,**/BuildConfig.*,**/Manifest*.*,**/*Test*.*,android/**/*.*")

@sonarqubecloud

Copy link
Copy Markdown

@itachi1706
itachi1706 enabled auto-merge April 23, 2026 09:39
@itachi1706
itachi1706 merged commit 3bf1fee into master Apr 23, 2026
8 checks passed
@itachi1706
itachi1706 deleted the jacoco-updates branch April 23, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant