Now available: Developer-focused Remote User Testing Session of your mobile app or website for $99.

Video: Using Fixtures and Test Assets in Swift Unit Tests (9m)

Posted on

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/VersionedFilesDemo

Thanks for watching!