How Tests Work in Xcode

Testing functionality was introduced in Xcode 5. Apple based many of its built-in functions on accepted and open source frameworks and has been working very hard to make testing a vital and useful tool in your developer utility belt.

We are going to go over several aspects of testing in Xcode in this chapter. Since we have spent a great deal of time creating and developing the PragmaticTweets app, let’s run it through some tests to see how it works.


Let’s direct our attention to the File Navigator, shown in this figure. There is a group titled PragmaticTweetsTests. Xcode has conveniently created this group and sample ...

Get iOS 9 SDK Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.