Packages for keyword “testing”
These packages are available as a package collection, usable in Xcode or SwiftPM.
swift-mockable
A Swift Macro that generates mock classes from protocols for testing.
swift-mocking
Swift macros for generating mocks.
ApprovalTests.Swift
ApprovalTests for Swift, a powerful alternative to assertions
Dejavu
Mocking for Swift network requests
LoremSwiftify
Swift Macro that generates realistic mock/fake data for structs, classes, and enums — perfect for SwiftUI previews and snapshot tests
SwiftAsyncStream
Experimental implementations of AsyncSignal, ValueSubject, PassthroughSubject and AsyncExpectation
SwiftMockk
A Mocking Library inspired by Mockk from Kotlin for creating mocks
Tablier
A micro-framework for Table Driven Tests.
xctest-extensions
Useful XCTest extensions for Swift
SwiftSimctl
Swift client-server tool to call xcrun simctl from your simulator. Automate push notification testing!
DangerSwiftCoverage
Show the coverage of the modified/created files on your PRs.
MockImagePicker
Mock UIImagePickerController for testing camera based UI in simulator
snapshotino
A lightweight, low-barrier-to-entry snapshot testing library for iOS
GherkinGenerator
A Swift library for composing, validating, importing, and exporting Gherkin .feature files programmatically.
swift-gherkin-testing
A native BDD testing framework for Swift. Execute Gherkin .feature files as Swift Testing tests using Swift Macros. No external runtime dependencies. Gherkin v6+ syntax with Cucumber Expressions, 70+ languages, and built-in reporters
VaporTestTools
Make testing Vapor 3 apps easy
AsyncTesting
Testing async code with Swift Concurrency
DiffedAssertEqual
Assert equality in tests. Get a textual diff for inequality
InjectableLoggers
A nice set of protocols that will help logger(s) at being loosely coupled, injectable and testable.
MockDuck
A network mocking layer for iOS, tvOS, and macOS