[](https://travis-ci.org/Michael Armstrong/SuperMock)
A very simple yet powerful UI and Unit testing mock framework for API calls. It lives in your app and is completely offline.
- Mock once, use forever.
- Works offline
- No Server
- No Proxies
- Pure Swift / Objective-C
- Very flexible
Reasoning, Motivation and More info about the project
To run the example project, clone the repo, and run pod install
from the Example directory first.
Define any mocks for your application in
Mocks.plist
Enter 2 lines of code into your AppDelegate (conditionally for your test target if required)
let appBundle = NSBundle(forClass: AppDelegate.self)
SuperMock.beginMocking(appBundle)
Your URL requests throughout your existing code base will begin to return Mocks!
SuperMock is available through CocoaPods. To install it, simply add the following line to your Podfile:
use_frameworks!
pod "SuperMock"
Michael Armstrong, @ArmstrongAtWork
SuperMock is available under the MIT license. See the LICENSE file for more info.