Unit Testing and Mocking in Swift (MDevCon 2016)
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.
Ben Asher
March 18, 2016
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.