How Tests Work in Xcode

Built-in testing functionality was introduced in Xcode 5 and regularly improved since then. Apple based many of its testing functions on accepted and open source frameworks and has been working very hard to make testing a vital and useful tool in the developer utility belt.

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

images/testing/xcode-test-files.png

Let’s direct our attention to the File Navigator, shown in this figure. There is a group titled PragmaticPodcastsTests. Xcode ...

Get iOS 10 SDK Development, 1st 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.