testing-swift

Installation
SKILL.md

Swift Testing Framework

Modern testing with @Test, #expect, and @Suite. Replaces XCTest for new projects.

Critical Constraints

  • ❌ DO NOT use XCTAssertEqual in Swift Testing → ✅ Use #expect(a == b)
  • ❌ DO NOT use func testSomething() naming convention → ✅ Use @Test func something()
  • ❌ DO NOT subclass XCTestCase → ✅ Use @Suite struct or plain @Test functions
  • ❌ DO NOT use XCTAssertThrowsError → ✅ Use #expect(throws:) { try something() }
  • ❌ DO NOT use setUp/tearDown → ✅ Use init/deinit on @Suite struct or actor

Basic Test

import Testing
Related skills

More from makgunay/claude-swift-skills

Installs
8
First Seen
Feb 14, 2026