SwiftMockGeneratorForXcode
Cuckoo
SwiftMockGeneratorForXcode | Cuckoo | |
---|---|---|
1 | 2 | |
741 | 1,640 | |
- | 0.5% | |
0.0 | 6.4 | |
over 1 year ago | 12 days ago | |
Objective-C | Swift | |
MIT License | MIT License |
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.
SwiftMockGeneratorForXcode
-
Swift Mocking Tools. To Use, or Not to Use, That Is the Question
Spoiler! It’s not a library but an Xcode plugin that helps solve the same problem — generating test doubles. SwiftMockGeneratorForXcode is an exception in this list of frameworks. Instead of being integrated into the project, this generator can only be added as an extension to Xcode. Also, you won’t have any custom verifiers or matchers, do all assertions using the XCTest framework.
Cuckoo
-
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?
OCMockito - Mockito for Objective-C: creation, verification and stubbing of mock objects
Mockingbird - A Swifty mocking framework for Swift and Objective-C.
SBTUITestTunnel - Enable network mocks and more in UI Tests
Mockingjay - An elegant library for stubbing HTTP requests with ease in Swift
SwiftyMocky - Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
Mockit - A simple mocking framework for Swift, inspired by the famous http://mockito.org/
awesome-xcode-extensions - Awesome native Xcode extensions.
SwiftMock - A mocking framework for Swift
Kakapo - 🐤Dynamically Mock server behaviors and responses in Swift
Buildasaur - Automatic testing of your Pull Requests on GitHub and BitBucket using Xcode Server. Keep your team productive and safe. Get up and running in minutes. @buildasaur
Quick - The Swift (and Objective-C) testing framework.