Using Fixtures and Test Assets in Swift Unit Tests

Опубликовано: 17 Март 2025
на канале: Mike Zornek
173
4

Original Post: http://mikezornek.com/posts/2020/9/us...



In today's video I'll demonstrate how you can use the concept of fixtures in your Swift unit tests to quickly build business objects and validate scenarios.

I'll also show how you can add assets to a test target and then access them in code using `Bundle(for: SomeTypeInTheTestBundle.self)`.

The code you see in the video is part of a demo project on GitHub:

https://github.com/zorn/VersionedFile...