ios-testing

Installation
SKILL.md

iOS Testing

Testing patterns for Swift and SwiftUI apps.

Prefer the Swift Testing framework (Xcode 16+) for new unit tests; XCTest is still required for UI tests (XCUITest) and performance measurement.

Swift Testing

import Testing
@testable import MyApp

// @Test replaces test-prefixed methods; the name is a plain description.
@Test("Loading users populates the list")
func loadUsersSucceeds() async throws {
    let mockService = MockUserService()
    mockService.usersToReturn = [User.mock1, User.mock2]
    let sut = UserViewModel(service: mockService)
Installs
5
GitHub Stars
12
First Seen
Aug 23, 2026
ios-testing — talissonvitorino/kmp-ios-skills