Overview of Mockable
mainMockable is a macro-driven testing framework for Swift that automatically generates mock implementations for your protocols. By leveraging the Swift macro system, it eliminates the need for external code-generation dependencies like Sourcery.
Key features include:
- Declarative API: Rapidly specify return values and verify method invocations in a readable format.
- Advanced Swift Support: Supports associated types, generic functions, where clauses, and constrained generic arguments.
- Build Safety: Generated mock implementations can be excluded from release builds using a built-in compile condition.