Pete Hodgson

Software Delivery Consultant

iOS Unit Testing Workshop

August 6, 2013

##TL;DR I’ll be running a couple of free workshops on iOS Unit Testing in San Francisco in late August/early September. If you’d like to attend please fill out this simple form and I’ll be in touch with details.

##Why is it free? What’s the catch?

I’m preparing to run a paid 3 hour workshop on iOS unit testing for the upcoming super-awesome StrangeLoop conference. As part of that prep I’ll be doing a couple of ‘dry runs’ of the workshop so I can fine tune the content, delivery, pacing, etc. You are cordially invited to attend. You get to learn a bunch about iOS unit testing, I get to hone and refine the workshop. A win/win for us both.

##Details on the workshop Learn the why and the how of unit-testing for your iOS applications using Kiwi, a popular open-source testing library.

You will leave this workshop excited to apply what you’ve learned to start testing your iOS app. In fact, you’ll probably want to fire up your project in Xcode straight afterwards!

We’ll start with the basics, covering what unit-testing is (and isn’t), and why it will be a valuable addition to your programming toolbox.

Having covered some theory we’ll then spend the majority of the workshop learning by doing. We’ll start by setting up an Xcode project for testing with Kiwi, and quickly move on to writing our first simple test.

After learning the basics with some isolated examples we’ll move on to look at how to unit test a real iOS app. As we go we’ll learn about mocking and stubbing, and when to make the decision not to test. We’ll learn how to test in the context of a CocoaTouch app, and how testing can positively influence the design of your app (hint: your app delegate and your view controller aren’t the only place to put your business logic!).

We’ll wrap up by touching on some more advanced topics such as test-driven development, CI, and how to test asynchronous code.

If this sounds interesting to you just fill out this simple form and I’ll be in touch with details about attending.

##About me

What better than a bio written in the third person!

Pete Hodgson is a consultant with ThoughtWorks, where he’s spent the last few years helping teams become awesome at sustainable delivery of high-quality mobile applications. Pete is on a mission to bring modern agile practices like continuous integration and automated testing to the iOS development community. While working on an iOS application for a large financial institution he helped create Frank, an automated acceptance testing tool for native iOS applications. He is now the open-source maintainer for Frank, which has become a leading tool for automated testing.