Skip to content

Include full display name in legacy XML reports - #5524

Merged
marcphilipp merged 1 commit into
mainfrom
marc/legacy-xml-full-display-name
Mar 17, 2026
Merged

marcphilipp merged 1 commit into
mainfrom
marc/legacy-xml-full-display-name

Conversation

@marcphilipp

Copy link
Copy Markdown
Member

Rather than just including the display name of the test, the display
names of all ancestors are now included as well, separated by the >
character. This includes display names of parents otherwise not
represented in the legacy XML format (for example, the invocation of a
@ParameterizedClass).

Resolves #5409.

Rather than just including the display name of the test, the display
names of all ancestors are now included as well, separated by the `>`
character. This includes display names of parents otherwise not
represented in the legacy XML format (for example, the invocation of a
`@ParameterizedClass`).

Resolves #5409.
@testlens-app

testlens-app Bot commented Mar 17, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: ea0a53f
▶️ Tests: 46742 executed
⚪️ Checks: 16/16 completed


Learn more about TestLens at testlens.app.

@marcphilipp
marcphilipp merged commit ee3a100 into main Mar 17, 2026
19 checks passed
@marcphilipp
marcphilipp deleted the marc/legacy-xml-full-display-name branch March 17, 2026 09:12

@jbduncan jbduncan 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.

Hi @marcphilipp - just a super minor nit, but otherwise this PR looks fantastic to me. Good work! 👍

try (XmlReport report = new XmlReport(out)) {
report.write(testIdentifier, tests);
try (var report = new XmlReport(out)) {
report.write(testIdentifier, tests, this.reportData.getTestPlan());

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.

I've had a look at XmlReport and it looks like it uses reportData.getTestPlan() directly in a few places.

Have you considered either:

  1. Inlining this parameter, or
  2. Replacing all uses of reportData.getTestPlan() with this parameter?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks for the review! I went with option 1. Done in f710172

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.

Brilliant, I'm happy with that. Thanks for making the fix so quickly! 👍

amilbourne added a commit to amilbourne/junit-framework that referenced this pull request Apr 21, 2026
Rather than just including the display name of the test, the display
names of all ancestors are now included as well, separated by the `>`
character. This includes display names of parents otherwise not
represented in the legacy XML format (for example, the invocation of a
`@ParameterizedClass`).

This is a backport of commit ee3a100

Changes were made to compile under Java 8

Co-authored-by: Marc Philipp <mail@marcphilipp.de>
Signed-off-by: Anthony Milbourne <18662115+amilbourne@users.noreply.github.com>
marcphilipp added a commit that referenced this pull request Apr 25, 2026
Rather than just including the display name of the test, the display
names of all ancestors are now included as well, separated by the `>`
character. This includes display names of parents otherwise not
represented in the legacy XML format (for example, the invocation of a
`@ParameterizedClass`).

This is a backport of commit ee3a100

Changes were made to compile under Java 8

Co-authored-by: Marc Philipp <mail@marcphilipp.de>
Signed-off-by: Anthony Milbourne <18662115+amilbourne@users.noreply.github.com>
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.

Legacy XML reports generated for @ParameterizedClass tests do not contain parameters

2 participants