mockolo
« Back to VersTracker
Description:
Efficient Mock Generator for Swift
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: swift testing mocking generator xcode
Install: brew install mockolo
About:
Mockolo is a fast, extensible mock generator for Swift that reads your protocol and class definitions to automatically produce mock classes for testing. It significantly reduces boilerplate code in unit tests, allowing developers to focus on test logic rather than manual mock implementation. The tool integrates seamlessly with Xcode and Swift Package Manager.
Key Features:
  • Automatic mock generation from Swift protocols and classes
  • Supports annotations for customizing generated code
  • Fast performance optimized for large codebases
  • Type-safe generated code that integrates with XCTest
Use Cases:
  • Unit testing Swift code by mocking dependencies
  • Generating mock implementations for protocols in large projects
  • Reducing boilerplate in test suites
Alternatives:
  • Cuckoo – Cuckoo is another Swift mock generator with similar functionality, but Mockolo is known for faster generation speeds.
  • SwiftMock – SwiftMock provides manual mock creation, whereas Mockolo automates the process entirely.
Version History
Detected Version Rev Change Commit
Sep 15, 2025 11:48pm 0 VERSION_BUMP 240a7cb4
Oct 25, 2024 4:23am 1 VERSION_BUMP 72c88fe9
Sep 14, 2024 4:50am 0 VERSION_BUMP a2b358c3