SwiftyMocky
OCMockito
Our great sponsors
SwiftyMocky | OCMockito | |
---|---|---|
3 | 1 | |
984 | 992 | |
0.7% | - | |
0.0 | 7.6 | |
3 days ago | 3 months ago | |
Swift | Objective-C | |
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.
-
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:
OCMockito
-
Swift Mocking Tools. To Use, or Not to Use, That Is the Question
Everything would be smooth and easy, except that Swift is not Objective-C. Supplying test doubles is incredibly easy in Objective-C, where the central mechanism is messages. You could send any message to any object. In case you had previous experience mocking on Objective-C using OCMock or OCMockito — forget it.
What are some alternatives?
Quick - The Swift (and Objective-C) testing framework.
Nimble - A Matcher Framework for Swift and Objective-C
Cuckoo - Boilerplate-free mocking framework for Swift!
OHHTTPStubs - Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
Kiwi - Simple BDD for iOS
SwiftCheck - QuickCheck for Swift
Mockingbird - Simplify software testing, by easily mocking any system using HTTP/HTTPS, allowing a team to test and develop against a service that is not complete or is unstable or just to reproduce planned/edge cases.
Bugfender Live
Cribble - Swifty tool for visual testing iPhone and iPad apps. Every pixel counts.
PlaygroundTDD - Small library to easily run your tests directly within a Playground
NaughtyKeyboard - The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data. This is a keyboard to help you test your app from your iOS device.