How to group xcode 5 test cases into test suites

三世轮回 提交于 2019-12-24 02:24:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!