Creating Tests 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 you have spent a great deal of time creating and developing your PragmaticTweets app, let’s run it through some tests to see how it works.

images/src/Tests/sideMenuStarter.png

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

Get iOS 8 SDK Development, 2nd Edition 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.