DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • The SPACE Framework for Developer Productivity
  • Design Patterns for Microservices: Ambassador, Anti-Corruption Layer, and Backends for Frontends
  • A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
  • RBAC With API Gateway and Open Policy Agent (OPA)

Trending

  • The SPACE Framework for Developer Productivity
  • Design Patterns for Microservices: Ambassador, Anti-Corruption Layer, and Backends for Frontends
  • A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
  • RBAC With API Gateway and Open Policy Agent (OPA)
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Testing, Tools, and Frameworks
  4. TDD Resources for iOS

TDD Resources for iOS

Mihai Fonoage user avatar by
Mihai Fonoage
·
Sep. 04, 13 · Interview
Like (0)
Save
Tweet
Share
8.07K Views

Join the DZone community and get the full member experience.

Join For Free
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, OCMockito, Kiwi, GHUnit, Cedar - other unit testing tools that you might find useful 
  • CoverStory / lcov - code coverage of your unit tests. 
Articles/Tutorials:
  • Screencasts from NSScreencast - TDD-related screencasts
  • Intro to TDD for iOS part 1 and part 2 - taking a Tic-Tac-Toe game through the TDD process
  • OCMock and UIAutomation tutorials - writings about mocking objects and the UI Automation tool
  • iOS Unit Testing - dedicated website for iOS Unit Testing
  • Unit Testing iOS Applications - online course on unit testing iOS applications, covering OCUnit, GHUnit, OCMock, and how to test view controllers, notifications, singleton, and gesture recognizers
  • Testing View Controllers - technical article from objc.io around testing table views, table view controllers, data sources, and nib files 
  • Testing Concurrent Applications - technical article from objc.io around testing asynchronous code
Other Resources:
  • Testing asynchronous code: AGAsynchTestHelper, SenTestingKitAsynch


unit test

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

Opinions expressed by DZone contributors are their own.

Trending

  • The SPACE Framework for Developer Productivity
  • Design Patterns for Microservices: Ambassador, Anti-Corruption Layer, and Backends for Frontends
  • A Complete Guide to AWS File Handling and How It Is Revolutionizing Cloud Storage
  • RBAC With API Gateway and Open Policy Agent (OPA)

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: