at b1ec969 Enable display name usage via system property
This branch includes the following new commits:
new b1ec969 Enable display name usage via system property
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
- private String getLegacyReportingName( TestIdentifier testIdentifier )
+ private String getReportingName( TestIdentifier testIdentifier )
+ if ( Boolean.getBoolean( "surefire.junit.platform.display.name.enabled" ) )
+ return testIdentifier.getDisplayName();
// Surefire cuts off the name at the first '(' character. Thus, we have to pick a different
// character to represent parentheses. "()" are removed entirely to maximize compatibility with
// existing reporting tools because in the old days test methods used to not have parameters.