O'Reilly logo

Mastering iOS 10 Programming by Donny Wals

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing the user interface with XCUITest

Knowing that most of your app logic is covered with tests is great. What's not so great however, is adding your view controllers to your logic test. Before Xcode 7 came out, you had to put quite some effort into testing view controllers. This led to people simply not testing a lot of view controller code which would ultimately lead to bugs in the user interface that could have been prevented with tests. We were able to perform some degree of tests using UI Automation in Instruments but it simply wasn't great.

In Xcode 7, Apple introduced interface testing and the XCUITest framework. With this feature, we suddenly gained a great framework to write interface tests in; we also gained a tool that allows us to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required