·swift-testing

Use when writing tests with Swift Testing (@Test,

57Installs·0Trend·@johnrogers

Installation

$npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing

SKILL.md

Swift Testing replaces XCTest with a modern macro-based approach that's more concise, has better async support, and runs tests in parallel by default. The core principle: if you learned XCTest, unlearn it—Swift Testing works differently.

| #expect(expression) | Soft check — continues on failure. Use for most assertions. | | #require(expression) | Hard check — stops test on failure. Use for preconditions only. |

| XCTAssert(expr) | #expect(expr) | | XCTAssertEqual(a, b) | #expect(a == b) | | XCTAssertNil(a) | #expect(a == nil) | | XCTAssertNotNil(a) | #expect(a != nil) | | try XCTUnwrap(a) | try #require(a) | | XCTAssertThrowsError | #expect(throws: ErrorType.self) { } | | XCTAssertNoThrow | #expect(throws: Never.self) { } |

Use when writing tests with Swift Testing (@Test, Source: johnrogers/claude-swift-engineering.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is swift-testing?

Use when writing tests with Swift Testing (@Test, Source: johnrogers/claude-swift-engineering.

How do I install swift-testing?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/johnrogers/claude-swift-engineering