MockAlamofire - A simple example showing how to override the URLProtocol to return mock data on Alamofire responses

  •        411

A simple example showing how to override the URLProtocol to return mock data on Alamofire responses. Helpful if you are looking for a simple way to mock an Alamofire response, with out any additional dependencies.

https://github.com/ksteigerwald/MockAlamofire

Tags
Implementation
License
Platform

   




Related Projects

Alamofire - Elegant HTTP Networking in Swift

  •    Swift

Alamofire is an HTTP networking library written in Swift. In order to keep Alamofire focused specifically on core networking implementations, additional component libraries have been created by the Alamofire Software Foundation to bring additional functionality to the Alamofire ecosystem.

Cuckoo - Boilerplate-free mocking framework for Swift!

  •    Swift

Cuckoo was created due to lack of a proper Swift mocking framework. We built the DSL to be very similar to Mockito, so anyone using it in Java/Android can immediately pick it up and use it. Cuckoo has two parts. One is the runtime and the other one is an OS X command-line tool simply called CuckooGenerator.

OHHTTPStubs - Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!

  •    Objective-C

It works with NSURLConnection, NSURLSession, AFNetworking, Alamofire or any networking framework that use Cocoa's URL Loading System. OHHTTPStubs headers are fully documented using Appledoc-like / Headerdoc-like comments in the header files. You can also read the online documentation here.

RxAlamofire - RxSwift wrapper around the elegant HTTP networking in Swift Alamofire

  •    Swift

RxAlamofire is a RxSwift wrapper around the elegant HTTP networking in Swift Alamofire. Wrapping RxSwift around Alamofire makes working with network requests a smoother and nicer task. Alamofire is a very powerful framework and RxSwift add the ability to compose responses in a simple and effective way.

Networking - Easy HTTP Networking in Swift a NSURLSession wrapper with image caching support

  •    Swift

Networking was born out of the necessity of having a simple networking library that doesn't have crazy programming abstractions or uses the latest reactive programming techniques, but just a plain, simple and convenient wrapper around NSURLSession that supports common needs such as faking requests and caching images out of the box. A library that is small enough to read in one go but useful enough to include in any project. That's how Networking came to life, a fully tested library for iOS, tvOS, watchOS and OS X that will always be there for you. Initializing an instance of Networking means you have to select a NSURLSessionConfiguration. The available types are Default, Ephemeral and Background, if you don't provide any or don't have special needs then Default will be used.


Kakapo - 🐤Dynamically Mock server behaviors and responses in Swift

  •    Swift

Dynamically Mock server behaviors and responses. Kakapo is a dynamic mocking library. It allows you to replicate your backend APIs and logic. With Kakapo you can easily prototype your application based on your API specifications.

mock-socket - Javascript mocking library for websockets and socket.io

  •    Javascript

To use within a node environment you can simply import or require the files directly. This option is great for phantomjs or CI environments. This project uses mocha as its test framework. Tests are located in /test and have 1 of 3 file name prefixes (functional-, issue-#, or unit-).

HTTPretty - HTTP client mocking tool for Python, it's like ruby's FakeWeb for python

  •    Python

Due to big API incompatibility between python 3.3, 3.4 and 3.5, the author of HTTPretty is not supporting python3 officially. You will notice that the travis build for python 3 might be broken, and while pull requests fixing py3 support are most welcome, it is still not official at least for now. Since you are interested in HTTPretty you should also be interested in speeding up your build. Replace pip with curdling and see your build running a lot faster.

Restofire - Restofire is a protocol oriented network abstraction layer in swift that is built on top of Alamofire to use services in a declarative way

  •    Swift

Restofire is a protocol oriented network abstraction layer in swift that is built on top of Alamofire to use services in a declarative way. Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.

Awesome-Swift-Playgrounds - A List of Awesome Swift Playgrounds

  •    Swift

A curated list of awesome Swift playgrounds. Unless otherwise indicated, all playgrounds are compatible with Swift 3.

KDCircularProgress - A circular progress view with gradients written in Swift

  •    Swift

The master branch is now Swift 4 compatible. For Swift 3: swift3 branch. Swift 2.3 swift2.3 branch. Swift 2 swift2 branch. KDCircularProgress is a circular progress view written in Swift. It makes it possible to have gradients in the progress view, along with glows and animations.

ios-swift-collapsible-table-section - :iphone: A simple iOS swift-3 project demonstrates how to implement collapsible table section

  •    Swift

In this project, the table view automatically resizes the height of the rows to fit the content in each cell, and the custom cell is also implemented programmatically. collapsed indicates whether the current section is collapsed or not, by default is false.

Swifternalization - Localize iOS apps in a smarter way using JSON files. Swift framework.

  •    Swift

Swift library that helps in localizing apps in a different, better, simpler, more powerful way than system localization does. It uses json files instead of strings files. Swift 3 compatible version is available on swift3 branch. No pod available yet, though. Encountering issue with code sign and xcode 8 during validating podspec. Will try to solve it.

Viperit - Viper Framework for iOS using Swift v4

  •    Swift

Write an iOS app following VIPER architecture. But in an easy way. CocoaPods is a dependency manager for Cocoa projects.

moq4 - Repo for managing Moq 4.x

  •    CSharp

You can think of Linq to Mocks as "from the universe of mocks, give me one whose behavior matches this expression".Moq (pronounced "Mock-you" or just "Mock") is the only mocking library for .NET developed from scratch to take full advantage of .NET Linq expression trees and lambda expressions, which makes it the most productive, type-safe and refactoring-friendly mocking library available. And it supports mocking interfaces as well as classes. Its API is extremely simple and straightforward, and doesn't require any prior knowledge or experience with mocking concepts.

Mockito - Most popular Mocking framework for unit tests written in Java

  •    Java

Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. Mockito doesn’t give you hangover because the tests are very readable and they produce clean verification errors.

Kakapo.js - :bird: Next generation mocking framework in Javascript

  •    Javascript

Kakapo its a full featured http mocking library, he allows you to entirely replicate your backend logic in simple and declaritive way directly in the browser. This way you can easily prototype and develop the whole Application without backend and just deactivate Kakapo when you go production. In order to achieve that Kakapo gives you a set of utilities like Routing, Database, Response, Request and so on... Use the kakapo router to declare two custom routes and returning custom data.

Alamofire-SwiftyJSON - Alamofire extension for serialize NSData to SwiftyJSON

  •    Swift

An extension to make serializing Alamofire's response with SwiftyJSON easily.

DaisyNet - 1. - Alamofire与Cache封装 , 更容易存储请求数据. 2. - 封装Alamofire下载,使用更方便

  •    Swift

对Alamofire与Cache的封装实现对网络数据的缓存,可以存储JSON,String,Data. DaisyNet is released under the MIT license. See LICENSE for details.