O'Reilly logo

iOS 8 SDK Development, 2nd Edition by Janie Clayton, Chris Adamson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing Frameworks

Beyond Apple’s built-in unit test framework, some further internal and external frameworks exist to make your testing life easier. We are just going to touch on these briefly so that you are aware of what they are and what options are available to you to make the best app that you can.

OCMock

At this point, you might be wondering how to test any functionality that requires a call to the network when we don’t have Internet, or a request for which we always want the exact same response. For this kind of testing, you would need to employ a mock object. A mock object is like a Patronus from Harry Potter. Like Harry Potter’s Patronus, a mock object is an imaginary object we conjure into existence as a stand-in for a real being. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required