Getting Started With Unit Testing in Swift (XCTest, Test Cases, Code Coverage)
In this Swift tutorial, we’ll be building on top of our Onboarding App that we built in our previous video and add in some unit testing. We’ll also discuss what is unit testing and how iOS unit testing works by breaking down our onboarding app’s logic. We’ll also discuss the what is included in XCTests and how to assert expressions to make sure our swift unit testing code works and validates our test cases, finally we’ll touch Xcode code coverage and see how we can use this to make sure we have applied unit testing in core areas of our app. Timestamps 00:00 Introduction 00:13 Brief introduction to Unit Testing 01:48 How to add Unit Tests into an existing Xcode project 02:52 Adding XCTests & Unit Testing our Plist Manager 08:29 Adding XCTests & Unit Testing our Onboarding Content Manager 09:35 Creating Mocks 14:21 Enabling Code Coverage in Xcode 16:44 Wrap up Build Onboarding Screens in SwiftUI (TabView, PageTabViewStyle, SwiftUI Tutorial, @AppStorage) • Build Onboarding Screens in SwiftUI (TabVi... Getting Started with Combine (Practical Combine Framework Examples in UIKit & SwiftUI) • Master The Combine Framework: From Beginne... Build a news app in SwiftUI tutorial series • SwiftUI News App (Beginner Level | MVVM Sw... Build Clubhouse in SwiftUI 2.0 and Dark Mode (SwiftUI Tutorial, SwiftUI 2.0, Clubhouse App Clone) • Build Clubhouse in SwiftUI 2.0 and Dark Mo... #iosdev #unittesting #iosunitesting #iosunittestingswift #codecoverage #testcases

Intro to Unit Testing in Swift

MVVM + Dependency Injection in Swift | Unit Testing | iOS

TDD and Unit Testing in iOS | Part 1 Stateless Objects

8 Common SwiftUI Mistakes – and how to fix them!

I Was Right About AI

iOS Dev 31: Getting Started with UI Testing | Swift 5, XCode 12

“How do you think when writing tests?” – It’s simpler than you may think

Model Context Protocol (MCP) Explained for Beginners: AI Flight Booking Demo!

XCTest + Swift: setUp/tearDown vs Factory Methods

How to write good Unit Tests for iOS Apps in SwiftUI (2022)

God Says:"I JUST CONFIRMED — ONLY YOU CAN SEE THIS LETTER"/God Message Now/God Message

Getting Started With Unit Testing | XCTest | Swift

DispatchQueue in Swift 5: iOS Concurrency & Threading (Xcode 11, 2020, swift)

SwiftUI - Intro to MVVM | Example Refactor | Model View ViewModel

Trump EVEN MORE DISORIENTED than we thought

How to add automated tests to an existing iOS/Swift codebase? | iOS Dev Live Mentoring

3 Hours of Creepy Minecraft Theories to Fall Asleep to

RL for Agents Workshop - Deep Dive on Training Agents with RL and Open Source

Why AI Agents are either the best or worst thing we’ve ever built

