Mastering Swift Testing: Installation & Refactoring from XCTest to @Test Macro

Published: 16 June 2024
on channel: Swift and Tips
3,140
101

In this first episode, we'll dive into the demo project we'll be refactoring throughout the series. You'll learn how to integrate the Swift Testing package into your project and how to transform an XCTest into a new test using the @Test macro.

OnlineStoreMV Project: https://github.com/pitt500/OnlineStor...
Is MVVM necessary for SwiftUI?: https://swiftandtips.com/is-mvvm-nece...
SampleBuilder Macro:    • Say Goodbye to Manual Mock Data: Disc...  
Swift Macros:    • Macros  

Content:
0:00 - Intro
2:15 - Explaining the project
4:31 - Tests using XCTest
7:35 - Xcode 16
8:07 - Add Swift Testing Package
9:31 - Creating a Swift Test
14:25 - Renaming Test
15:32 - Insights
16:22 - Failing expectation
17:14 - Outro

-----

Other videos from my channel:
Sensitive Content Analysis:    • Detecting Sensitive Content in your o...  
The Composable Architecture (TCA):    • The Composable Architecture  
How to display a GIF in SwiftUI?:    • How to display a gif in SwiftUI? 💡  
SampleBuilder Macro:    • Say Goodbye to Manual Mock Data: Disc...  
Result Builders:    • Result Builders in Action: Simplifyin...  

-----
My Contact:
https://www.swiftandtips.com
  / swiftandtips  
https://iosdev.space/@swiftandtips
  / pedrorojaslo  


Watch video Mastering Swift Testing: Installation & Refactoring from XCTest to @Test Macro online without registration, duration hours minute second in high quality. This video was added by user Swift and Tips 16 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,140 once and liked it 101 people.