Packages for keyword “mock”
These packages are available as a package collection, usable in Xcode or SwiftPM.
OHHTTPStubs
Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
Cuckoo
Boilerplate-free mocking framework for Swift!
swiftymocky
Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
Mockingbird
A Swifty mocking framework for Swift and Objective-C.
CoreBluetoothMock
Mocking library for CoreBluetooth framework.
MockingKit
Mock protocols and classes in Swift.
SpryKit
Spry is a framework that allows spying and stubbing in Apple's Swift language. Also included is a XCTAsserts for the spied objects
swift-mocking
Swift macros for generating mocks.
NetworkMonitor
Network Monitor SDK for iOS
Frisbee
Another network wrapper for URLSession. Built to be simple, small and easy to create tests at the network layer of your application.
InstantMock
Create mocks easily in Swift
swift-mocking
A compact swift mocking library powered by parameter packs.
swift-snapshot
SwiftLiteral converts in-memory objects into compilable Swift code that you can commit, diff, and reuse anywhere: no JSON, no decoding, just Swift.
Elmulator
A scriptable Bluetooth LE and TCP OBD2 (ELM327) adapter emulator and CI test harness. Test your OBD2 app without a car or a physical adapter. MIT.
MockUserDefaults
Mocking UserDefaults for tests
swift-mockable
A Swift Macro that generates mock classes from protocols for testing.
NetworkSpectator
A network monitoring and intercepting Swift library to observe and inspect network traffic during development and testing. It is an interceptor tool which captures requests and responses, lets browse them and export.
Faketooth
BLE simulation for iOS platform
LocalServer
Simulate your Server APIs locally without Internet connectivity required
MockImagePicker
Mock UIImagePickerController for testing camera based UI in simulator