swift-testing is a modern, open-source testing library for Swift with powerful and expressive capabilities. It gives developers more confidence with less code.
This package is under active, ongoing development. Its contents, including all interfaces and implementation details, are experimental and are subject to change or removal without notice.
We welcome feedback and ideas from the Swift community. Please join us in the Swift forums and let us know what you think!
Flexible test organization
Define test functions almost anywhere with a single attribute and group related tests into hierarchies using Swift’s type system.
Dynamically enable or disable tests depending on runtime conditions, categorize tests using tags, and associate bugs directly with the tests that verify their fixes or reproduce their problems.
Automatically parallelize tests in-process, integrate seamlessly with Swift concurrency, and parameterize test functions across wide ranges of inputs.
The table below describes the current level of support that
swift-testing has for various platforms:
|Windows||Pending support for macros|
The detailed documentation for
swift-testing can be found on the Swift Package Index.
Here, you can delve into comprehensive guides, tutorials, and API references to make the most out of
swift-testing is under active development. We are working to integrate it with the rest of the Swift ecosystem, but you can try it out today by following the steps in our Getting Started article.
What is Copy-On-Write
Copy-On-Write (COW) is a strategy used in computer programming and operating systems to optimize the performance and efficiency of memory...
Mobile App Development Best Practices – 11.12
Large photos in SwiftUI, Mutation Testing, Processing Payments in Firebase and more!
SDKs for which Apple will require a signature have been published
Apple has already listed SDKs commonly used in apps in the App Store that, from spring 2024, you will be...
Discover the Journaling Suggestions API
Journaling Suggestions is a visual picker interface for iPhone applications. It displays personal events that are happening in a person’s...
Tusky – An Android client for the microblogging server Mastodon
Tusky is a beautiful Android client for Mastodon. Mastodon is an ActivityPub federated social network. That means no single entity controls...
Swift 30 Projects: 30 mini Swift Apps for self-study
This repo is updated with Swift 5 and compatible with iPhone X: Simple UIKit components UIScrollView, UITableView, UICollectionView CAAnimations and...