You are previewing Test-Driven iOS Development.

Test-Driven iOS Development

Cover of Test-Driven iOS Development by Graham Lee Published by Addison-Wesley Professional

12. Applying Test-Driven Development to an Existing Project

You’ve seen a full-featured app developed from inception to completion in a test-driven fashion. Many of you won’t be coming into this from scratch, though; you’ll have existing apps with code that has grown organically from the first beta version you gave to testers, through major releases and bug fix revisions to the state it’s currently in. Does TDD offer you anything? This chapter provides answers to that question.

The Most Important Test You’ll Write Is the First

Your app code probably works, for the most part: You wouldn’t have released it to your customers if it hadn’t at least passed some basic usage tests. But does any particular method in it satisfy all its requirements, or ...

The best content for your career. Discover unlimited learning on demand for around $1/day.