swift-testing-pro
swift testing pro
What it does
- Target Swift 6.2 or later, using modern Swift concurrency.
- Swift Testing does not support UI tests – XCTest must be used there.
- Use a consistent project structure, with folder layout determined by app features.
- references/async-tests.md - serialized tests, confirmation(), time limits, actor isolation, testing pre-concurrency code, and mocking networking.
- references/migrating-from-xctest.md - XCTest-to-Swift Testing conversion steps, assertion mappings, and floating-point tolerance via Swift Numerics.
Requirements & configuration
- Line 30: Use #require for preconditions, not #expect.
- let first = try #require(users.first)
- 3. Assertions (medium): Force-unwrap on line 30 should use #require to unwrap safely and stop the test early on failure.
- references/writing-better-tests.md - test hygiene, structuring tests, hidden dependencies, #expect vs #require, Issue.record(), #expect(throws:), and verification methods.
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
swift-testing-pro FAQ
What does the swift-testing-pro skill do?
Writes, reviews, and improves Swift Testing code using modern APIs and best practices. Use when reading, writing, or reviewing projects that use Swift Testing. Target Swift 6.2 or later, using modern Swift concurrency. Swift Testing does not support UI tests – XCTest must be used there.
What does swift-testing-pro require?
Line 30: Use #require for preconditions, not #expect. let first = try #require(users.first) 3. Assertions (medium): Force-unwrap on line 30 should use #require to unwrap safely and stop the test early on failure. references/writing-better-tests.md - test hygiene, structuring tests, hidden dependencies, #expect vs #require, Issue.record(), #expect(throws:), and verification methods.
How do I install swift-testing-pro?
Run: npx -y skills add https://github.com/twostraws/swift-testing-agent-skill --skill swift-testing-pro --agent claude-code — the source lives at github.com/twostraws/swift-testing-agent-skill.
Maintain swift-testing-pro?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/twostraws-swift-testing-agent-skill-swift-testing-pro?ref=badge) npx agentictools info skills/twostraws-swift-testing-agent-skill-swift-testing-pro The second line is the CLI lookup for this page — handy in READMEs and docs.