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

Successful TDD on iOS

DZone's Guide to

Successful TDD on iOS

TDD on iOS is hard, but could be successful. Check out this video from AltConf 2015 with tips on how to achieve TDD and BDD on iOS.

· Mobile Zone
Free Resource

Launching an app doesn’t need to be daunting. Whether you’re just getting started or need a refresher on mobile app testing best practices, this guide is your resource! Brought to you in partnership with Perfecto

TDD on iOS is hard, but could be successful.

Here is the video from AltConf 2015 presentation we made with Glen Tregoning:

Successful Test-Driven Development on iOS

Test Driven Development on iOS has presented some challenges due to lack of tools and support from Apple. This talks is how to achieve TDD and BDD on iOS:

  • Continuous integration Jenkins, Xcode bots
  • Break down and parallelize builds
  • Setup simulator with preset state
  • Facebook, Permissions
  • Unit Spec, App Specs, Acceptance Tests
  • Fakes, Mocks
  • Stub network calls for tests
  • Test data modeling
  • Running backend locally for tests
  • Image comparison to assert on expected look
  • Recommended tooling to help overcome the challenges of Apple’s limited support
  • Kiwi
  • KIF
  • KIF-Kiwi
  • xctool
  • Swift
  • Swift to ObjC bridging

Keep up with the latest DevTest Jargon with the latest Mobile DevTest Dictionary. Brought to you in partnership with Perfecto.

Topics:
ios ,mobile ,tdd ,mobile development ,mobile dev ,bdd

Published at DZone with permission of Paul Zabelin. 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 }}