The ability to remove external dependencies from your Swift app when testing is one of the pillars of creating reliable iOS apps. This course teaches how to remove external dependencies and elevate your unit testing with mocks and stubs.
The ability to remove external dependencies from your Swift app when testing is one of the pillars of creating reliable iOS apps. This course teaches how to remove external dependencies and elevate your unit testing with mocks and stubs.
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.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.