Thank you for coming to my talk! If you found it helpful, please
- Join my newsletter. You’ll also receive the Objective-C and Swift code snippets I use to quickly write tests.
- Consider inviting me to speak, train or coach on unit testing and Test-Driven Development at your company.
Here are the slides for Making Swift Mock Objects More Powerful.
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.
Disclosure: The book link below is an affiliate link. If you buy anything, I earn a commission, at no extra cost to you.
Refactoring: 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.