测试
无论你是在寻找 XCTest 的扩展还是完全不同的测试方法,这些包都能帮到你。
-
swift-testing作者: 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-dump作者: 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-testing作者: 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.
-
Quick作者: 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.
-
Nimble作者: 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.
-
OCMockito作者: 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.