·swift-testing
</>

swift-testing

Da utilizzare quando si scrivono test con Swift Testing (@Test,

79Installazioni·0Tendenza·@johnrogers

Installazione

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

Come installare swift-testing

Installa rapidamente la skill AI swift-testing nel tuo ambiente di sviluppo tramite riga di comando

  1. Apri il terminale: Apri il tuo terminale o strumento da riga di comando (Terminal, iTerm, Windows Terminal, ecc.)
  2. Esegui il comando di installazione: Copia ed esegui questo comando: npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing
  3. Verifica l'installazione: Dopo l'installazione, la skill verrà configurata automaticamente nel tuo ambiente AI di coding e sarà pronta all'uso in Claude Code, Cursor o OpenClaw

Fonte: johnrogers/claude-swift-engineering.

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) { } |

Da utilizzare quando si scrivono test con Swift Testing (@Test, Fonte: johnrogers/claude-swift-engineering.

Fatti (pronti per citazione)

Campi e comandi stabili per citazioni AI/ricerca.

Comando di installazione
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing
Categoria
</>Sviluppo
Verificato
Prima apparizione
2026-02-01
Aggiornato
2026-03-10

Browse more skills from johnrogers/claude-swift-engineering

Risposte rapide

Che cos'è swift-testing?

Da utilizzare quando si scrivono test con Swift Testing (@Test, Fonte: johnrogers/claude-swift-engineering.

Come installo swift-testing?

Apri il tuo terminale o strumento da riga di comando (Terminal, iTerm, Windows Terminal, ecc.) Copia ed esegui questo comando: npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing Dopo l'installazione, la skill verrà configurata automaticamente nel tuo ambiente AI di coding e sarà pronta all'uso in Claude Code, Cursor o OpenClaw

Dov'è il repository sorgente?

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