try! Swift Tokyo 2017 Slides & Code

Thank you!

Thank you for coming to my talk! If you found it helpful, please

Slides

Here are the slides for Making Swift Mock Objects More Powerful.

Code

And here is sample code. Build SwiftMocks.xcworkspace and run the tests. Experiment with changing things in Waiter.swift to see how the tests report those changes.

The official repository of Swift Hamcrest is here. However, I have a couple of pull requests that are still waiting, so the sample code uses my fork with those changes.

Recommended Book

RefactoringRefactoring: The Improving the Design of Existing Code by Martin Fowler

As I emphasized in my talk, unit tests are a tool to empower refactoring.
The Refactoring book completely changed the way I code.
 
Disclosure: Please note that the book link above is an affiliate link. If you buy anything, I earn a commission, at no extra cost to you.