Testing & Mocking

Curated Swift libraries for Testing & Mocking.

22 of 22 libraries

AutoMockable

A framework that leverages the type system to let you easily create mocked instances of your data types.

Cuckoo

First boilerplate-free mocking framework.

DVR

A simple network testing framework.

Erik

An headless browser to access and manipulate webpages using javascript allowing to run functional tests.

Fakery

Fake data generator.

Mocker

Mock Alamofire and URLSession requests without touching your code implementation

alamofireurlsessionmock

Mockingbird

Simplify software testing, by easily mocking any system using HTTP/HTTPS, allowing a team to test and develop against a service that is not complete, unstable or just to reproduce planned cases.

Mockingjay

An elegant library for stubbing HTTP requests with ease.

Mockit

A simple mocking framework, inspired by the famous Mockito for Java.

MockSwift

Mock Framework that uses the power of property wrappers.

Mussel

A framework for easily testing Push Notifications, Universal Links and Routing in XCUITests.

Nimble

A matcher framework.

OHHTTPStubs

A testing library designed to stub your network requests easily.

Quick

Quick is a behavior-driven development framework.

linux

SBTUITestTunnel

UI testing library for interact with network requests, stub CLLocationManager and UNUserNotificationCenter, and fine grain scrolling in table/collection/scroll views

Sizes

Test your app on different device and font sizes.

SnapshotTest

Snapshot testing tool for iOS and tvOS.

iOStvOS

Spectre

BDD Framework.

linux

swift-testing-expectation

Create an asynchronous expectation in Swift Testing.

SwiftCheck

A testing library that automatically generates random data for testing program properties.

UI Testing Cheat Sheet

Answers to common "How do I test this with UI Testing?" questions with a working example app.

XCTest

The XCTest Project, A Swift core library for providing unit test support.