Skip to content

Include package in JUnit test names#2207

Merged
dagood merged 1 commit intomicrosoft/mainfrom
dev/mclayton/enable-pkg-names
Mar 24, 2026
Merged

Include package in JUnit test names#2207
dagood merged 1 commit intomicrosoft/mainfrom
dev/mclayton/enable-pkg-names

Conversation

@michelle-clayton-work
Copy link
Contributor

Follow-up to microsoft/go-infra#445 to enable full package names

@michelle-clayton-work michelle-clayton-work marked this pull request as ready for review March 24, 2026 17:07
@michelle-clayton-work michelle-clayton-work requested a review from a team as a code owner March 24, 2026 17:07
Copilot AI review requested due to automatic review settings March 24, 2026 17:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the eng/_util test JSON → JUnit conversion to emit fully-qualified (package-included) test names, aligning CI JUnit output with the follow-up behavior requested from microsoft/go-infra#445.

Changes:

  • Bump github.com/microsoft/go-infra to a newer pseudo-version that supports configuring JUnit naming behavior.
  • Switch JUnit conversion to json2junit.NewConverterWithOptions and enable IncludePackageInTestName.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
eng/_util/go.mod Updates the go-infra module version to pick up the new json2junit option support.
eng/_util/go.sum Updates checksums corresponding to the go-infra version bump.
eng/_util/buildutil/testjson.go Enables package-qualified test names in generated JUnit output via converter options.

@dagood dagood merged commit c06d93c into microsoft/main Mar 24, 2026
67 of 115 checks passed
@dagood dagood deleted the dev/mclayton/enable-pkg-names branch March 24, 2026 19:08
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.

4 participants