Unit Testing iPhone Apps
An O'Reilly Breakdown
Publisher: O'Reilly Media
Final Release Date: February 2011
Run time: 1 hour 53 minutes

Unit testing is one of those topics that sounds like a mandatory course in a computer science degree. Then again, the programmers already using unit tests spend less time debugging and more time building functional code. Dan Pilone breaks down why unit testing is important, but also how to add unit tests without falling asleep at the keyboard from boredom. You'll also see how unit testing isn't just a bonus feature, but actually improves the way you think about and program your iOS applications.

Dan will also help you get firmly into the Objective C and iPhone tools for unit testing, so you're not forcing a desktop approach onto a mobile platform. You'll add automated testing, get custom reports, and do it all in a manner that is focused on and tailored to the iPhone. Along the way, you'll get an inside look at how a professional, highly-paid consultant programs his own applications--and unit testing is a crucial part of his workflow.

The experts in the O'Reilly Breakdown live video series not only break down the concepts of difficult and complex subjects, they also demonstrate practical implementation and use. Each episode features an experienced programmer, developer, or software designer working on real-world challenges, ranging from iPad user interface design and multi-tasking on Android phones to caching in cloud-based applications.

Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
O'Reilly MediaUnit Testing iPhone Apps
 
4.3

(based on 3 reviews)

Ratings Distribution

  • 5 Stars

     

    (1)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Accurate (3)

Cons

    Best Uses

        • Reviewer Profile:
        • Developer (3)

      Reviewed by 3 customers

      Sort by

      Displaying reviews 1-3

      Back to top

       
      5.0

      Valuable knowledge, easy to digest

      By Stevey Wibblecheeks

      from Victoria

      About Me Developer

      Verified Reviewer

      Pros

      • Accurate
      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Expert

        Comments about O'Reilly Media Unit Testing iPhone Apps:

        Dan is very personable, and instantly made me feel at ease. I have spent quite some time lumping about the internet trying to find out about unit testing for iOS apps, but the real pay-off was watching Dan. It's so much easier to watch a real expert doing it.

        The interaction between Dan and Courtney provides a good back-and-forth line of questioning that teases out some of the finer details. I've never seen this kind of thing before, but I like it.

        I would highly recommend this video to anyone interested in unit testing iOS apps. I have just bought another video by Dan, and will look for more of his work.

        (1 of 1 customers found this review helpful)

         
        4.0

        Entertaining, Informative, Essential

        By Dozza

        from Sydney

        About Me Developer

        Verified Reviewer

        Pros

        • Accurate
        • Concise

        Cons

          Best Uses

          • Expert
          • Intermediate

          Comments about O'Reilly Media Unit Testing iPhone Apps:

          Another of the video books I get form O'Reilly, this topic particularly interested me. Unit Testing is one which isn't as widely talked about in iOS literature but is an essential part of development. This excellent video provides an insight, beautifully segmented to provide an easy to understand flow into unit testing. How to set up and layout your tests, and the rationale behind why you should be testing. The most obvious that Dan tells us, is the fact that you won't see your app on the app store unless it's tested and works.

          (2 of 2 customers found this review helpful)

           
          4.0

          You will start to like unit tests

          By Michal Konrad Owsiak

          from Poland

          About Me Developer

          Verified Reviewer

          Pros

          • Accurate
          • Easy to understand
          • Helpful examples

          Cons

          • Not comprehensive enough

          Best Uses

          • Novice
          • Student

          Comments about O'Reilly Media Unit Testing iPhone Apps:

          Unit testing is quite important when it comes to writing good, fault proof applications. Nobody likes writing them unless you got used to it. If you start using them, you will probably fill uncomfortable when tests are missing. Unit testing is basically a way of making you confident that application works almost like expected. You can't filter everything, but still – having few tests is better than having none. Developing for iPhone is not that far from any other development. If you want have your application appreciated by users, it should never fail unexpectedly. Even more, there is another fence that forces you to develop error prone applications – Apple Store validation process. If you want your application to be there, you have to make it correctly. Dan Pilone and Courtney Nash guide you through the process of setting up and using Unit tests. At the very beginning you will be told how to prepare your working environment and how to set up things – this is the place where every Unit testing starts. Dan shows not only good examples but he shows bad practices as well. This way, he smoothly changes the topic and goes directly into refactoring the code. In refactoring section, he basically shows us how should we re-factor the code in order to make it "Unit test friendly". If you have already built code, you have to re-factor it in order to implement tests. When you start coding from the scratch, you can develop using test driven approach instead. This method of developing Unit tests is discussed by Dan and Courtney as well. What is important here is that Dan not only gives you technical details but also the background of the process. Why should I do Unit testing, how should I start, how can I benefit from it.

          What I like in this video training is that Dan faces issues that surprise him, which makes this video quite trustworthy. I also like his real life examples. I have, however, few remarks when it comes to the video and the content. First of all, you can here some background noise within first two parts. It might me distracting sometimes – if you got used to it, you will manage to go further. Another thing is that there is really annoying "feature" of iTunes when it comes to O'Reilley's videos. From time to time videos contain useful comments at the bottom of the screen. However, if you press Pause, you get whole comment covered with iTunes panel. This is quite frustrating. If you want to solve this "issue" simply drag your iTunes movie control panel somewhere at the top of the screen and you are done. If it comes to content related issues, this is just picking holes in it. Dan mentions that he prefers to use test case names that contain "should do something" in order to make code cleaner. You can see later on in the code, that he uses standard test names "testSomething" through out the video. Another issue is that he works with the code that can not be found at O'Reilly's page – this is a pity. I'd rather to have really simple Unit test example with code that I can download and test for myself.

          If you ask me, whether the video is worth seeing or not, I can only say – yes it is. I got lazy over past few years. I don't want to 'google' for everything I need. Sometimes, I simply want to lay back, watch the video, and get the knowledge I need, while at the same time I can relax :)

          Displaying reviews 1-3

          Back to top

           
          Buy 2 Get 1 Free Free Shipping Guarantee
          Buying Options
          Immediate Access - Go Digital what's this?
          Video: $99.99
          (Streaming, Downloadable)