XCTestCase.name property doesn't seem to affect anything

Originator:jediknil
Number:rdar://FB7568421 Date Originated:2020-02-07
Status:Open Resolved:
Product:Xcode Product Version:11.3.1 (11C504)
Classification:Incorrect/Unexpected Behavior Reproducible:
 
When an XCTestCase subclass overrides ‘name’, the new name isn’t used in either the Test Navigator in Xcode or in the log output. You have to override the undocumented `languageAgnosticTestMethodName` instead. (And that still doesn’t allow customizing the whole line for textual output; you have to also override `nameForLegacyLogging` in that case.)

You can see an example of this in the attached archive’s ExpectedOutputTests class (also at https://belkadan.com/source/ROSE-8/commit/6ba964352de647ceb0394a3d54e302a15f1e672f).

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!