Cuckoo
Mock your Swift objects!

Introduction
Cuckoo was created due to lack of a proper Swift mocking framework. We built the DSL to be very similar to Mockito, so anyone coming from Java/Android can immediately pick it up and use it.
How does it work
Cuckoo has two parts. One is the runtime and the other one is an OS X command-line tool simply called Cuckoonator.
Unfortunately Swift does not have a proper reflection, so we decided to use a compile-time generator to go through files you specify and generate supporting structs/classes that will be used by the runtime in your test target.
The generated files contain enough information to give you the right amount of power. They work based on inheritance and protocol adoption. This means that only overridable things can be mocked. Due to the complexity of Swift it is not easy to check for all edge cases so if you find some unexpected behavior, please file an issue.
Changelog
List of all changes and new features can be found here.
Features
Cuckoo is a powerful mocking framework that supports:
- inheritance (grandparent methods)
- generics
- simple type inference for instance variables (works with initializers,
as TYPE notation, and can be overridden by specifying type explicitly)
- Objective-C mocks utilizing OCMock
What will not be supported