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

Опубликовано: 16 Июнь 2024
на канале: 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  


Смотрите видео Mastering Swift Testing: Installation & Refactoring from XCTest to @Test Macro онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Swift and Tips 16 Июнь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,140 раз и оно понравилось 101 людям.