SwiftMock
A mocking framework for Swift (by mflint)
Cuckoo
Boilerplate-free mocking framework for Swift! (by Brightify)
SwiftMock | Cuckoo | |
---|---|---|
- | 2 | |
275 | 1,710 | |
- | 0.8% | |
4.1 | 8.0 | |
11 months ago | 6 days ago | |
Swift | Swift | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
SwiftMock
Posts with mentions or reviews of SwiftMock.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning SwiftMock yet.
Tracking mentions began in Dec 2020.
Cuckoo
Posts with mentions or reviews of Cuckoo.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-12.
-
Tests Everywhere - Swift
Swift testing this simple Hello World with XCTest and Cuckoo
-
Swift Mocking Tools. To Use, or Not to Use, That Is the Question
Additional setup: The cuckoo installation process requires adding a new run script into your test target build phases. Include the absolute path to each file and the framework that will generate mocks in this script. Import the generated file into the project once, and then re-generate it to keep it up to date. Class name starts from the word ‘Mock’ — each test double you can use as mock, stub, or spy.
What are some alternatives?
When comparing SwiftMock and Cuckoo you can also consider the following projects:
Mockit - A simple mocking framework for Swift, inspired by the famous http://mockito.org/
Mockingbird - A Swifty mocking framework for Swift and Objective-C.
UI Testing Cheat Sheet - How do I test this with UI Testing?
Mockingjay - An elegant library for stubbing HTTP requests with ease in Swift
Mussel - A framework for easily testing Push Notifications and Routing in XCUITests