Mark an XCTest method `async throws` and call the asynchronous API with `try await` directly: ```swift final class APIClientTests: XCTestCase { func testFetchUser() async throws { let client = APIClient(transport: StubTransport()) let user = try await client.fetchUser() XCTAssertEqual(user.id, 42) } } ``` Use structured async APIs rather than `Thread.sleep`. If the code is callback-based, bridge or test it with an `XCTestExpectation` and a reasonable timeout.
Scanned 9/5/2026
Install to Claude Code
npx -y skills add HoangNguyen0403/agent-skills-standard --skill swift-testing --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Swift Testing?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-swift-testing-1a340a36)More formats (shields.io, HTML) on the badges page.
Mark an XCTest method `async throws` and call the asynchronous API with `try await` directly:
```swift
final class APIClientTests: XCTestCase {
func testFetchUser() async throws {
let client = APIClient(transport: StubTransport())
let user = try await client.fetchUser()
XCTAssertEqual(user.id, 42)
}
}
```
Use structured async APIs rather than `Thread.sleep`. If the code is callback-based, bridge or test it with an `XCTestExpectation` and a reasonable timeout.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.