Xcode Test Files and Helper Editors

The behavior of Xcode around the test files and the editor assistant annoys me more and more, and I wonder if there is a way to make the behavior more reasonable.

In the editor mode of the non-automatic assistant, where you can choose analogues, test classes, etc., is there a way to adjust the order of any files in these menus? Usually I will have one test file corresponding to each class file, and I want this test file to open whenever I open the corresponding class file. But I can also use this class in several other test files that interact with this type of object. This makes Xcode treat all these other test files as class-specific, and it just opens the first alphabet when I open the class file. I would really like it if I could choose the default test class to open when I open a particular code class, or at least if I could install Xcode to remember which test class I opened the last time when I edited this code class.

Another mistake is that at any time when I edit the code in the main editor, the file opened in the assistant jumps to the top of the file and I have to scroll back to find what I'm looking there.

Are there any preferences or plugins for customizing any of these behaviors in Xcode 6? Or does someone have a good alternative workflow for TDD where you don't have to spend so much effort fighting xcode?

+6
source share

Source: https://habr.com/ru/post/981556/


All Articles