Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ private void startTestElement(XMLWriter ppw, WrappedReportEntry report) throws I

String className = phrasedClassName
? report.getReportSourceName(reportNameSuffix)
: report.getSourceText() != null ? report.getSourceText() : report.getSourceName(reportNameSuffix);
: report.getSourceName(reportNameSuffix);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks for pointing this out.

My change does not reintroduce the issue from SUREFIRE-2298.
The goal of this change is to restore reportNameSuffix in the
testcase classname attribute, which was lost after that change.

Using report.getSourceName(reportNameSuffix) still keeps the
correct behavior for JUnit 5 nested classes while restoring
the suffix in the XML report classname.

I will also add an integration test to verify this behavior.
Sorry for the late reply.


if (className != null) {
ppw.addAttribute("classname", extraEscapeAttribute(className));
}
Expand Down
Loading