SwiftyMocky
Cuckoo
Our great sponsors
SwiftyMocky | Cuckoo | |
---|---|---|
3 | 2 | |
993 | 1,639 | |
1.7% | 0.6% | |
0.0 | 6.4 | |
18 days ago | 2 days ago | |
Swift | 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.
SwiftyMocky
-
Looking for Mocking Framework
what mocking framework do you use? I have used SwiftyMocky so far and MockingBird looks also promising.
- iOS unit test mocking using SwiftyMocky
-
Swift Mocking Tools. To Use, or Not to Use, That Is the Question
Additional setup: SwiftyMocky has a 2 step installation. First, set up SwiftyMocky CLI on your working machine. Second, add it to the project’s test target via one of the 3 options listed above. Open Terminal in your project root folder and execute the following commands one by one:
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?
Quick - The Swift (and Objective-C) testing framework.
Mockingbird - A Swifty mocking framework for Swift and Objective-C.
Nimble - A Matcher Framework for Swift and Objective-C
Mockingjay - An elegant library for stubbing HTTP requests with ease in Swift
OHHTTPStubs - Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
Mockit - A simple mocking framework for Swift, inspired by the famous http://mockito.org/
Kiwi - Simple BDD for iOS
SwiftMock - A mocking framework for Swift
SwiftCheck - QuickCheck for Swift
Kakapo - 🐤Dynamically Mock server behaviors and responses in Swift
PlaygroundTDD - Small library to easily run your tests directly within a Playground
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