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

preview_player
Показать описание
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.

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:

-----
My Contact:
Рекомендации по теме
Комментарии
Автор

great explanation, waiting for next in this series...

rohitdwivedi
Автор

This is great. Thanks for making this example! But do we need to add the Swift Testing package using Xcode 16? Isn’t it already embedded in the beta?

AleMohamad
Автор

What does the output of the tests look like on the command-line? Do we still need xcpretty to make it look nice?

rickyisajedi