I noticed something that might be of interest to y’all.

At one point I asked my team if the preference was to name test files as MyFileTests or TestMyFile.

I’ve noticed that for test files that end with Tests you get this nice output in the Counterparts menu where the test and the implementation file are linked.

This only works if the test is named MyFileTests and there isn’t any deviation. (ex. MyFile and MyFileTests and not TestMyFile)

What does Xcode show?

Screenshot of Xcode counterparts menu showing tests when test file ends with the word Tests Screenshot of Xcode counterparts showing test file and file name when test file name ends with the word Tests Screenshot of Xcode counterparts menu not showing tests when the test file name is prefixed with the word Test