swift-testing
✓À utiliser lors de l'écriture de tests avec Swift Testing (@Test,
Installation
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) { } |
À utiliser lors de l'écriture de tests avec Swift Testing (@Test, Source : johnrogers/claude-swift-engineering.
Faits (prêts à citer)
Champs et commandes stables pour les citations IA/recherche.
- Commande d'installation
npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing- Catégorie
- </>Développement
- Vérifié
- ✓
- Première apparition
- 2026-02-01
- Mis à jour
- 2026-02-18
Réponses rapides
Qu'est-ce que swift-testing ?
À utiliser lors de l'écriture de tests avec Swift Testing (@Test, Source : johnrogers/claude-swift-engineering.
Comment installer swift-testing ?
Ouvrez votre terminal ou outil de ligne de commande (Terminal, iTerm, Windows Terminal, etc.) Copiez et exécutez cette commande : npx skills add https://github.com/johnrogers/claude-swift-engineering --skill swift-testing Une fois installé, le skill sera automatiquement configuré dans votre environnement de programmation IA et prêt à être utilisé dans Claude Code ou Cursor
Où se trouve le dépôt source ?
https://github.com/johnrogers/claude-swift-engineering
Détails
- Catégorie
- </>Développement
- Source
- skills.sh
- Première apparition
- 2026-02-01