[Issue-3226] JUnit5Xml30StatelessReporter does not change class name in report (#3347)
- Fix usePhrasedTestCaseClassName=false still using @DisplayName in XML classname attribute
When phrasedClassName was false, the classname attribute in the XML report incorrectly used sourceText (the @DisplayName value) whenever it was non-null, making the flag effectively a no-op for classes annotated with @DisplayName. The false branch now consistently uses getSourceName(), matching the existing pattern for phrasedMethodName.
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Closed the resources in StatelessXmlReporterTest.
Fixed the integration tests.
Replaced the original solution with a new field.
Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Contributing to Apache Maven Surefire
The Maven Community
Project Documentation
Usage of maven-surefire-plugin, maven-failsafe-plugin, maven-surefire-report-plugin
Development Information
Build the Surefire project using Maven 3.6.3+ and JDK 8+.
In order to run tests for a release check during the Vote, the following memory requirements are needed:
On Linux/Unix:
On Windows:
In order to build and run the tests:
To set up the project in Eclipse IDE or IntelliJ IDEA, please follow these steps:
Build module
surefire-shared-utilswith profileide-developmentand install it into the local maven repository using this Maven command:In Eclipse, select File > Import … > Maven Project
surefire-shared-utils, enter profileide-developmentin Advanced -> ProfilesIn IntelliJ, select Maven > Profiles and check
ide-developmentDeploying web site
See http://maven.apache.org/developers/website/deploy-component-reference-documentation.html