Now Australia's Biggest Toy Store

Shop over 1.5 Million Toys in our Huge New Range

Test-Driven IOS Development

Hurry - Only 2 left in stock!

Product Description
Product Details

Table of Contents

Dedication vPreface xiiAcknowledgments xivAbout the Author xiv1 About Software Testing and Unit Testing 1What Is Software Testing For? 1Who Should Test Software? 2When Should Software Be Tested? 6Examples of Testing Practices 7Where Does Unit Testing Fit In? 7What Does This Mean for iOS Developers? 112 Techniques for Test-Driven Development 13Test First 13Red, Green, Refactor 15Designing a Test-Driven App 18More on Refactoring 19Ya Ain't Gonna Need It 19Testing Before, During, and After Coding 213 How to Write a Unit Test 23The Requirement 23Running Code with Known Input 24Seeing Expected Results 26Verifying the Results 26Making the Tests More Readable 28Organizing Multiple Tests 29Refactoring 32Summary 344 Tools for Testing 35OCUnit with Xcode 35Alternatives to OCUnit 46Google Toolkit for Mac 46GHUnit 47CATCH 48OCMock 50Continuous Integration 52Hudson 53CruiseControl 57Summary 585 Test-Driven Development of an iOS App 59Product Goal 59Use Cases 60Plan of Attack 63Getting Started 646 The Data Model 67Topics 67Questions 73People 75Connecting Questions to Other Classes 76Answers 817 Application Logic 87Plan of Attack 87Creating a Question 88Building Questions from JSON 1028 Networking Code 113NSURLConnection Class Design 113StackOverflowCommunicatorImplementation 114Conclusion 1259 View Controllers 127Class Organization 127The View Controller Class 128TopicTableDataSource and TopicTableDelegate 133Telling the View Controller to Create a New View Controller 149The Question List Data Source 158Where Next 17010 Putting It All Together 171Completing the Application's Workflow 171Displaying User Avatars 185Finishing Off and Tidying Up 189Ship It! 19911 Designing for Test-Driven Development 201Design to Interfaces, Not Implementations 201Tell, Don't Ask 203Small, Focused Classes and Methods 204Encapsulation 205Use Is Better Than Reuse 205Testing Concurrent Code 206Don't Be Cleverer Than Necessary 207Prefer a Wide, Shallow Inheritance Hierarchy 208Conclusion 20812 Applying Test-Driven Development to an Existing Project 209The Most Important Test You'll Write Is the First 209Refactoring to Support Testing 210Testing to Support Refactoring 212Do I Really Need to Write All These Tests? 21313 Beyond Today's Test-Driven Development 215Expressing Ranges of Input and Output 215Behavior-Driven Development 216Automatic Test Case Generation 217Automatically Creating Code to Pass Tests 219Conclusion 220Index 221

About the Author

Graham Lee's job title is "Smartphone Security Boffin," a role that requires a good deal of confidence in the code he produces. His first exposure to OCUnit and unit testing came around six years ago, as test lead on a GNUstep-based server application. Before iOS became the main focus of his work, Graham worked on applications for Mac OS X, NeXTSTEP, and any number of UNIX variants. This book is the second Graham has written as part of his scheme to learn loads about computing by trying to find ways to explain it to other people. Other parts of this dastardly plan include speaking frequently at conferences across the world, attending developer meetings near to his home town of Oxford, and volunteering at the Swindon Museum of Computing.

Ask a Question About this Product More...
Write your question below:
Look for similar items by category
Home » Books » Computers » Programming » General
Home » Books » Computers » Programming » XML
How Fishpond Works
Fishpond works with suppliers all over the world to bring you a huge selection of products, really great prices, and delivery included on over 25 million products that we sell. We do our best every day to make Fishpond an awesome place for customers to shop and get what they want — all at the best prices online.
Webmasters, Bloggers & Website Owners
You can earn a 5% commission by selling Test-Driven IOS Development (Developer's Library) on your website. It's easy to get started - we will give you example code. After you're set-up, your website can earn you money while you work, play or even sleep! You should start right now!
Authors / Publishers
Are you the Author or Publisher of a book? Or the manufacturer of one of the millions of products that we sell. You can improve sales and grow your revenue by submitting additional information on this title. The better the information we have about a product, the more we will sell!
Item ships from and is sold by Fishpond World Ltd.
Back to top