Unit Testing and Mocking in Swift

This session was presented by Ben Asher on March 18 at Mdevcon 2016. Ben about the session: “Having a lot of code that depends on iOS UI frameworks can make it difficult to write reliable unit tests. As Swift replaces Objective-C as the iOS language of choice, it becomes more difficult to mock out dependencies in tests. In this talk, I’ll dissect some testing issues and demonstrate fixing an unreliable sample test suite. We’ll discuss what makes unit tests unreliable, how to make them more stable with dependency injection, and some techniques for writing testable code.”


Session info:

Speaker: Ben Asher

Date: 18 March 2016

Time: 12:00 - 13:00

Relevant tags:

See all speakers

See all videos