How to group xcode 5 test cases into test suites

2019-07-21 04:01发布

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条回答
你好瞎i
2楼-- · 2019-07-21 04:27

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.

查看更多
登录 后发表回答