问题
I use xcode 5 test navigator to run my test, but one painful thing is that I need sometime to test whole layers of my app (say the models). I would like a way to group tests into logical units. I could probably use Test targets for that purpose but I don't think that's an efficient way.
回答1:
Creating a test case class for each of your logical units will group them in the test navigator. Choose File > New > File to add a new test case class to your project.
If you move the cursor over a test case class in the test navigator, a small Run button will appear next to the class. Click the button to run only the tests for that class.
来源:https://stackoverflow.com/questions/25142603/how-to-group-xcode-5-test-cases-into-test-suites