Learn all about Testing with these posts

Unit testing, UI testing, and performance testing your Swift code.

New!
How to automatically detect memory leaks on CI/CD using UI tests

Learn how to automatically detect memory leaks in your Apple apps using UI tests and Xcode's XCTest framework.

How to programmatically parse the contents of an XCResult bundle

Extract information from tests in an XCResult bundle such as the screen recording of a failing UI test.

Getting started with Swift Testing

All you need to know about Apple's macro-based testing library available from Xcode 16 and the Swift 6 Toolchain.

Validate your XCTest utilities and extensions with unit tests

Make sure no regressions occur in your custom XCTestCase extensions and helper methods with unit tests and XCTExpectFailure.

Xcode 15: Automated accessibility audits

Spot accessibility issues in your app automatically with Xcode 15 both locally and on your CI/CD pipeline.

Configuring UI tests with launch arguments

Launch arguments provide a way to configure the behaviour of an app before running UI tests

Asserting errors from throwing functions

Looking at how to use expecations and XCTAssertThrowsError to assert specific errors are being thrown in Swift.

Testing dates consistently

A quick look at how very simple dependency injection 💉 can help testing date differences using cache invalidation as an example.