Add jacocoDistTestReport task for weekly coverage XML#2544
Open
fadidurah wants to merge 1 commit into
Open
Conversation
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>
|
❌ Work item link check failed. Description does not contain AB#{ID}. Click here to Learn more. |
Contributor
There was a problem hiding this comment.
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
jacocoTestReportregistration into a sharedregisterJacocoXmlReportclosure to avoid duplication. - Added
jacocoDistTestReportto generate JaCoCo XML+HTML reports for thedistDebugunit tests (for the weekly release pipeline).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a dedicated
jacocoDistTestReportGradle task (distDebug variant) to produce JaCoCo coverage XML for the weekly release pipeline, without changing any PR-facing behavior.What changed
registerJacocoXmlReportclosure and registers two tasks:jacocoTestReport-> localDebug (unchanged - used by PR validation, preserved byte-for-byte)jacocoDistTestReport-> distDebug (new - used by the weekly release pipeline)jacocoDistTestReportdepends ontestDistDebugUnitTest(already run by the weekly build), so it just converts the existing.execinto XML/HTML - no double test execution.Why
The weekly pipeline builds the
distDebugvariant, which only emits a JaCoCo.execbinary. 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.