·swift-testing
</>

swift-testing

johnrogers/claude-swift-engineering

Zum Schreiben von Tests mit Swift Testing verwenden (@Test,

57Installationen·1Trend·@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) { } |

Zum Schreiben von Tests mit Swift Testing verwenden (@Test, Quelle: johnrogers/claude-swift-engineering.

Original anzeigen

Fakten (zitierbereit)

Stabile Felder und Befehle für KI/Such-Zitate.

Installationsbefehl
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing
Kategorie
</>Entwicklung
Verifiziert
Erstes Auftreten
2026-02-01
Aktualisiert
2026-02-18

Schnelle Antworten

Was ist swift-testing?

Zum Schreiben von Tests mit Swift Testing verwenden (@Test, Quelle: johnrogers/claude-swift-engineering.

Wie installiere ich swift-testing?

Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code oder Cursor

Wo ist das Quell-Repository?

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