Testing
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.
-
swift-testingby The Swift Programming Language
Enhances Swift code testing with expressive APIs, custom behaviors, flexible organization, scalable execution, and cross-platform support. Compatible with XCTest for easy migration.
-
swift-custom-dumpby Point-Free
A collection of tools for debugging, diffing, and testing data structures in Swift. Includes
customDump
for refined output,diff
for textual diffs, andXCTAssertNoDifference
for test assertions. -
swift-snapshot-testingby Point-Free
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.
-
Quickby Quick
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.
-
Nimbleby Quick
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.