Latest 0.1.0
Homepage https://github.com/michaelarmstrong/SuperMock
License MIT
Platforms ios 8.0, requires ARC
Authors

[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.

Latest podspec

{
    "name": "SuperMock",
    "version": "0.1.0",
    "summary": "A very simple yet powerful UI and Unit testing HTTP mock framework. Lives in your app and runs offline.",
    "description": "A very simple yet powerful UI and Unit testing mock framework for API calls. It lives in your app and is completely offline. Setup your mocks at the start rather than on a per test basis.nInspired by the need for MOCKS in UI tests without the hassle of setting up per class mocks and wanting something very portable and retro-compatible with any codebase.",
    "homepage": "https://github.com/michaelarmstrong/SuperMock",
    "license": "MIT",
    "authors": {
        "Michael Armstrong": "@ArmstrongAtWork"
    },
    "source": {
        "git": "https://github.com/michaelarmstrong/SuperMock.git",
        "tag": "0.1.0",
        "branch": "master"
    },
    "social_media_url": "https://twitter.com/ArmstrongAtWork",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "SuperMock": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This