Mastering Swift Testing: Run Serialized Tests with One Line of Code!

Published: 03 July 2024
on channel: Swift and Tips
439
14

In this video, we'll explore the powerful new Swift Testing framework launched by Apple, designed to make unit testing seamless and efficient. One standout feature of Swift Testing is its ability to run all tests in parallel by default, significantly speeding up your development process.

However, some tests need to run in a specific order due to dependencies. We'll show you how to configure serialized tests in Swift Testing with just one line of code! Learn how to refactor your tests from XCTest to Swift Testing while maintaining the necessary test order.

---

Previous Episode (Parallel Tests):    • Mastering Swift Testing: Effortless P...  
Swift Testing Playlist:    • Swift Testing  

OnlineStoreMV Project: https://github.com/pitt500/OnlineStor...
Xcode 16's Code Completion:    • First Look at Xcode 16's Code Complet...  

Content:
0:00 - Intro
1:30 - XCTests running serialized
4:49 - Migrating to Swift Testing
6:15 - Swift Tests Serialized
10:12 - Outro

-----

Other videos from my channel:
Podcast:    • Swift and Tips Podcast  
any Protocol (Existential Types):    • "any" Keyword and Existential types i...  
The Composable Architecture (TCA):    • The Composable Architecture  
Apple Watch Layout using Geometry Reader:    • Building Apple Watch Layout with Geom...  
Key Paths:    • The Anatomy of a Key Path  
Result Builders:    • Result Builders in Action: Simplifyin...  
Types of Access Control:    • All types of Access Control in Swift ...  
Generics:    • Generics  

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


Watch video Mastering Swift Testing: Run Serialized Tests with One Line of Code! online without registration, duration hours minute second in high quality. This video was added by user Swift and Tips 03 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 439 once and liked it 14 people.