Y

YouLibs

Remove Touch Overlay

Mocking a Network Request (Unit Testing Part 3)

Duration: 37:43Views: 4.7KLikes: 89Date Created: Apr, 2022

Channel: CodeWithChris

Category: Education

Tags: how to make an apphow build a mobile appcodinghow to create an appios developmentxcodeiosprogrammingswift

Description: In this lesson, learn how to add a unit test target to an existing project and mock a network request. Mocking the network request isolates your code from external factors, to test your own code, rather than testing others’ code. This video is presented by Mikaela Caron (youtube.com/c/MikaelaCaron/videos) Timestamps: 00:00 Intro 00:28 Cloning the Project 05:24 Reviewing the App 07:08 Add Unit Test Target to Existing Project 11:19 Refactor the Singleton 18:42 Create an HTTPClientProtocol 25:40 How to Mock the Network Request Links: GitHub: The iOS Vapor Project - github.com/codewithchris/YT-Vapor-iOS-App/tree/lesson-5 🚨 SPECIAL CWC+ OFFER FOR YOUTUBE: cwc.to/youtubeoffer MY FREE ONLINE COURSE: ⚡ How to make an app in 14 days - cwc.to/14days CWC+ PROGRAM: 👩‍💻 All our courses in a learning path - cwc.to/plus WEEKLY UPDATES VIA EMAIL: ✉️ Every Saturday, receive an email digest of new content - cwc.to/newsletter CONNECT: 🌍 Website - codewithchris.com 😺 GitHub - github.com/codewithchris 📸 Instagram - instagram.com/codewithchris 🐦 Twitter - twitter.com/codewithchris ABOUT CODEWITHCHRIS: Hi I’m Chris! I’m dedicated to teaching fundamentals about how to make an app. This is important if you’re trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On this channel and my website, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have learned to code and build apps on their own! cwc.to/reviews DID THESE LESSONS HELP YOU? Please let me know! - feedback.codewithchris.com ROADMAP: roadmap.codewithchris.com

Swipe Gestures On Overlay