Skip to content

A very simple yet powerful UI and Unit testing mock framework for API calls. It lives in your app and is completely offline.

License

Notifications You must be signed in to change notification settings

danieleforlani/SuperMock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SuperMock

[CI Status](https://travis-ci.org/Michael Armstrong/SuperMock) Version License Platform

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

Usage

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

[Mocks plist example

Enter 2 lines of code into your AppDelegate (conditionally for your test target if required)

let appBundle = NSBundle(forClass: AppDelegate.self)
SuperMock.beginMocking(appBundle)

[AppDelegate example

Your URL requests throughout your existing code base will begin to return Mocks!

Requirements

Installation

SuperMock is available through CocoaPods. To install it, simply add the following line to your Podfile:

use_frameworks!
pod "SuperMock"

Author

Michael Armstrong, @ArmstrongAtWork

License

SuperMock is available under the MIT license. See the LICENSE file for more info.

About

A very simple yet powerful UI and Unit testing mock framework for API calls. It lives in your app and is completely offline.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 64.0%
  • Shell 30.8%
  • Ruby 2.6%
  • Objective-C 1.7%
  • HTML 0.9%