Skip to content

Add jacocoDistTestReport task for weekly coverage XML#2544

Open
fadidurah wants to merge 1 commit into
devfrom
fadi/code-coverage
Open

Add jacocoDistTestReport task for weekly coverage XML#2544
fadidurah wants to merge 1 commit into
devfrom
fadi/code-coverage

Conversation

@fadidurah

Copy link
Copy Markdown
Collaborator

Summary

Adds a dedicated jacocoDistTestReport Gradle task (distDebug variant) to produce JaCoCo coverage XML for the weekly release pipeline, without changing any PR-facing behavior.

What changed

  • Introduces a shared registerJacocoXmlReport closure and registers two tasks:
    • jacocoTestReport -> localDebug (unchanged - used by PR validation, preserved byte-for-byte)
    • jacocoDistTestReport -> distDebug (new - used by the weekly release pipeline)
  • jacocoDistTestReport depends on testDistDebugUnitTest (already run by the weekly build), so it just converts the existing .exec into XML/HTML - no double test execution.

Why

The weekly pipeline builds the distDebug variant, which only emits a JaCoCo .exec binary. Coverage aggregation needs XML. This gives the weekly pipeline a task that emits XML from the dist flavor while leaving PR validation (local flavor) untouched.

Risk

Low - PR validation path (jacocoTestReport / localDebug) is unchanged.

Register a dedicated JaCoCo XML+HTML report task (jacocoDistTestReport)
targeting the distDebug variant used by the weekly release pipeline,
alongside the existing jacocoTestReport (localDebug) used by PR validation.
This lets the weekly pipeline produce coverage XML from the dist flavor
without changing any PR-facing behavior. Both tasks are registered via a
shared closure so their configuration stays in sync.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 20, 2026 06:37
@fadidurah
fadidurah requested a review from a team as a code owner July 20, 2026 06:37
@github-actions github-actions Bot added the msal label Jul 20, 2026
@github-actions

Copy link
Copy Markdown

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

Copilot AI 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.

Pull request overview

This PR updates the msal module’s Gradle coverage reporting by introducing a reusable registration closure and adding a new JaCoCo report task that targets the distDebug variant for the weekly pipeline, while keeping the existing PR-validation localDebug report task behavior intact.

Changes:

  • Refactored the existing jacocoTestReport registration into a shared registerJacocoXmlReport closure to avoid duplication.
  • Added jacocoDistTestReport to generate JaCoCo XML+HTML reports for the distDebug unit tests (for the weekly release pipeline).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants