WWDC24: Meet Swift Testing | Apple

preview_player
Показать описание
Introducing Swift Testing: a new package for testing your code using Swift. Explore the building blocks of its powerful new API, discover how it can be applied in common testing workflows, and learn how it relates to XCTest and open source Swift.

Discuss this video on the Apple Developer Forums:

Explore related documentation, sample code, and more:

00:00 - Introduction
00:59 - Agenda
01:20 - Building blocks
01:58 - Building blocks: @Test functions
03:07 - Building blocks: Expectations (#expect and #require)
06:02 - Building blocks: Traits
06:49 - Building blocks: @Suite types
08:34 - Building blocks: Designed for Swift
09:14 - Common workflows
09:29 - Common workflows: Tests with conditions
10:56 - Common workflows: Tests with common characteristics
13:13 - Common workflows: Tests with different arguments
17:35 - Swift Testing and XCTest
21:52 - Open source
23:29 - Wrap up

More Apple Developer resources:
Рекомендации по теме