What We’ve Learned

In this chapter we have gone on a nice tour of unit testing and gotten a taste for the fundamentals of test-driven development. We walked through the TDD process from idea to implementation.

We have explored Apple’s built-in unit testing suite XCTest, for testing both application logic and user interface. We also saw how to test the user interface and how it interacts with our code. And to top it off, we ran the app on the device, so we’ll see exactly what the users will when they run it on their iPhones and iPads.

You now have the tools to go forth into the world and test your apps so that you can be sure your users will not have to deal with a crash or erroneous behavior.

Now that you know how to write tests to ensure your ...

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.