Adding Unit Tests to an Existing iOS Project (SwiftUI / UIKit)
Автор: Sparkcode
Загружено: 2021-04-19
Просмотров: 3379
This is a quick video demonstrating how to add a unit testing bundle to an existing Xcode project. The process is simple but has a few gotcha's to look out for.
Use @testable import in order to import your app module
If your project has a space in its name then the generated module will replace spaces with underscores. My Project will become My_Project
Make sure your unit test bundle is in your app scheme's "Test" section
There is no difference in unit testing between a SwiftUI project and a UIKit project, they both integrate unit tests in the same way.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: