Whether you’re looking for an extension on top of XCTest or a completely different way to approach testing, these packages are here to help.
SnapshotTesting is a delightful Swift snapshot testing library. It allows you to easily compare snapshots of views, view controllers, URL requests, and encodable values. It supports a wide range of snapshot strategies and is highly configurable.
Quick is a behavior-driven development framework for Swift and Objective-C. It is inspired by RSpec, Specta, and Ginkgo. It comes with Nimble, a matcher framework for tests.
Nimble is a testing library for Swift and Objective-C. It provides a more expressive way to write assertions and supports operator overloads and asynchronous testing.
A collection of tools for debugging, diffing, and testing data structures in Swift. Includes
customDumpfor refined output,
difffor textual diffs, and
XCTAssertNoDifferencefor test assertions.
OCMockitoby Jon Reid
OCMockito is an Objective-C implementation of Mockito, allowing you to create, verify, and stub mock objects. It has some key differences from other mocking frameworks, making tests less fragile and more readable.
A powerful testing library for Swift, providing a modern and flexible testing library for Swift with powerful and expressive capabilities. It gives developers more confidence with less code.