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-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.
-
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. -
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.
-
swift-testingby Apple
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.
-
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.