Overview of SwiftyMocky
masterSwiftyMocky is a strongly typed framework designed for a Mockito-like unit testing experience in Swift. It leverages Sourcery to scan your source code and automatically generate Swift mock implementations for protocols and protocol compositions.
Key features include:
- Support for generics.
- Easy syntax utilizing IDE auto-complete.
- Ability to specify return values via
given. - Support for recording sequences of return values.
- Verification of method invocations and attributes via
verify. - Ability to perform actions when stubbed methods are called via
perform. - Compatibility with real devices.