There is an updated version of this course available, created for Swift 5.5, iOS 15, Xcode 13. View Latest Version

Testing in iOS

Sep 1 2015 · Video Course (59 mins) · Intermediate

Testing is a great way to help ensure the pieces of your app remain functionally correct and bug-free. Learn the basics of testing in iOS in this video tutorial series as you explore unit tests, assertions, performance tests, and the new UI testing features of Xcode 7. You should already be familiar with iOS and Swift before starting this series.


  • Swift 2, iOS 9, Xcode 7


3:40 Free

Find out what's covered in our Testing in iOS video tutorial series!


Learn the basics of unit testing by setting up the test target, accessing the code from your app, and trying out a few basic unit tests.


Learn how to perform tests on your asynchronous code and how to use subclasses to make light weight mocks to tests parts of your iOS app.


Learn how to use performance tests to examine performance trends over time and learn about the code coverage features which are new in Xcode 7.


Learn how user interface testing allows you to automate taps and swipes so that you can test your app's user facing functionality within your test suite.


Learn about element queries in UI testing and how to use recording to automate writing some of your UI testing code.




Review what was covered in our Testing in iOS video tutorial series and get some tips for how to go about testing in your own apps.


Version history

iOS 15, Swift 5.5, Xcode 13

Sep 28 2021

iOS 13, Swift 5.2, Xcode 11.4

May 14 2020

iOS 11, Swift 4, Xcode 9

Dec 26 2017

iOS 10, Swift 3, Xcode 8

Dec 19 2016

iOS 9, Swift 2, Xcode 7 (Selected)

Sep 1 2015