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.
A collection of tools for debugging, diffing, and testing data structures in Swift. Includes
customDumpfor refined output,
difffor textual diffs, and
XCTAssertNoDifferencefor test assertions.
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.
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.
OCHamcrest is an Objective-C module that provides a library of matchers for creating flexible test assertions and user input validation.