clide313
clide313

Reputation: 1507

How to group xcode 5 test cases into test suites

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.

Upvotes: 2

Views: 1376

Answers (1)

Swift Dev Journal
Swift Dev Journal

Reputation: 20088

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.

Upvotes: 2

Related Questions