The idea is to remove the repetitive boilerplate involved in writing mocks by hand, especially as protocols grow larger and start using async/await, throwing functions, and complex method signatures.
The tool scans the codebase, identifies mockable protocols, and produces deterministic mock classes that support call tracking, argument capture, and customizable behavior for tests.
It’s written entirely in Swift, has no runtime dependencies, and is designed to be easy to integrate into existing build or CI workflows.
GitHub: https://github.com/gokulnair2001/SwiftMock
Feedback and suggestions are very welcome.