Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Advanced Unit Testing with Swift​ iOS Through Mocks and Stubs

via Pluralsight

Overview

Create reliable mobile apps with this Swift iOS unit testing tutorial. Advanced unit testing uses mocks and stubs for small, fast, isolated tests.

At the core of unit testing any Swift app is a thorough knowledge of how to create small, fast, and isolated tests that don’t depend on external systems. In this course, Advanced Unit Testing with Swift iOS Through Mocks and Stubs, you’ll learn how to remove external dependencies in your tests through the use of mocks and stubs. First, you’ll learn what mocks and stubs are. Next, you’ll explore how to mock iOS framework classes and remove their dependencies. Finally, you’ll discover how to inject your newly created mocks into production classes, which allows for the use of one context in production and another in testing. When you’re finished with this course, you’ll have a foundational understanding of Swift unit testing with mocks and stubs that will help you as you move forward to building more reliable Swift apps.

Taught by

Brett Romero

Reviews

3.6 rating at Pluralsight based on 13 ratings

Start your review of Advanced Unit Testing with Swift​ iOS Through Mocks and Stubs

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.