Taking on new clients for Elixir and web development.
Mike Zornek

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!


About the Author. Mike Zornek is a developer and teacher focusing on product design and development with a heavy focus on Elixir and LiveView. In between his projects, Mike helps other teams through consulting. During off hours, he enjoyed watching Phillies baseball and playing relaxing video games.