The Frontier logo The Frontier logo
Nick Teissler

Asynchronous Unit Testing

Nick Teissler | Apr 30, 2018

How to write unit tests for asynchronous behaviors in an app?

In this screencast, we’re going to look at writing unit tests for asynchronous behaviors in an app. Over the course of the video, we'll cover:

- How to write unit tests that verify an app’s network behaviors and asynchronous calls
- Using the XCTExpectation class to prevent test code from exiting prematurely
- Apple’s Network Link Conditioner which lets you simulate various network conditions so your app can be resilient to a slow network, or no network at all.

Basic knowledge or experience building iOS applications is recommended.

For the More Curious...

Github API
Apple Developer Documentation: Async Testing with Expectations
WWDC 2017: What’s New in Testing?
XCode Additional Tools
Unit Testing: What, Why, and How
BNR Guide to iOS
BNR Guide to Swift
iOS & Swift Courses

Subscribers Only

Looks like you don't have an acocunt. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Looks like you don't have an acocunt. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

Have questions about this screencast? Start a discussion with our nerds in the community tab.