Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

TDD Resources for iOS

DZone's Guide to

TDD Resources for iOS

· DevOps Zone
Free Resource

Download “The DevOps Journey - From Waterfall to Continuous Delivery” to learn learn about the importance of integrating automated testing into the DevOps workflow, brought to you in partnership with Sauce Labs.

Below are a few resources I've found useful when doing TDD in iOS. 
Books:
  • Test-Driven iOS Development -  the only TDD book specific to iOS. It goes over implementing a fully functional iOS app using TDD, from the data layer all the way to the UI.
  • Working Effectively with Legacy Code - although not specifically geared toward iOS, this book is the authority on how to work with untested code (legacy code) and how to safely make changes to it, all by applying TDD. 
Frameworks/Tools:
  • OCUnit (SenTestingKit) / XCTest - testing unit frameworks built directly into Xcode
  • OCMock - Objective-C implementation of mock objects. Provides features such as class mocks, stubs, protocol mocks, expect/verify and many more
  • OCHamcrest, OCMockitoKiwi, GHUnit, Cedar - other unit testing tools that you might find useful 
  • CoverStory / lcov - code coverage of your unit tests. 
Articles/Tutorials:
Other Resources:


Discover how to optimize your DevOps workflows with our cloud-based automated testing infrastructure, brought to you in partnership with Sauce Labs

Topics:

Published at DZone with permission of Mihai Fonoage, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}