swift-testing-expert

swift testing expert

avdlee 431 ↓ 4k MIT updated 3mo ago
Claude Code
View source ↗

What it does

  • Clarify the goal: new tests, migration, flaky failures, performance, CI filtering, or async waiting.
  • Collect minimal facts:
  • Xcode/Swift version and platform targets
  • Whether tests currently use XCTest, Swift Testing, or both
  • Whether failures are deterministic or flaky
  • Whether tests access shared resources (database, files, network, global state)
  • Branch quickly:

Requirements & configuration

  • 2. Treat #expect as the default assertion and use #require when subsequent lines depend on a prerequisite value.
  • #expect, #require, and throw expectations -> references/expectations.md
  • Failing optional preconditions hidden in later assertions -> try #require(...) then assert on unwrapped value.
  • Confirm prerequisites use #require where failure should stop the test.

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

swift testing expert

Source

Repository: https://github.com/avdlee/swift-testing-agent-skill

swift-testing-expert FAQ

What does the swift-testing-expert skill do?

Expert guidance for Swift Testing: test structure, #expect/#require macros, traits and tags, parameterized tests, test plans, parallel execution, async waiting patterns, and XCTest migration. Use when writing new Swift tests, modernizing XCTest suites, debugging flaky tests, or improving test quality and maintainability in Apple-platform or Swift server projects. Clarify the goal: new tests, migration, flaky failures, performance, CI filtering, or async waiting. Collect minimal facts:

What does swift-testing-expert require?

2. Treat #expect as the default assertion and use #require when subsequent lines depend on a prerequisite value. #expect, #require, and throw expectations -> references/expectations.md Failing optional preconditions hidden in later assertions -> try #require(...) then assert on unwrapped value. Confirm prerequisites use #require where failure should stop the test.

How do I install swift-testing-expert?

Run: npx -y skills add https://github.com/avdlee/swift-testing-agent-skill --skill swift-testing-expert --agent claude-code — the source lives at github.com/avdlee/swift-testing-agent-skill.

Maintain swift-testing-expert?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[swift-testing-expert on getagentictools](https://getagentictools.com/skills/avdlee-swift-testing-agent-skill-swift-testing-expert?ref=badge)
npx agentictools info skills/avdlee-swift-testing-agent-skill-swift-testing-expert

The second line is the CLI lookup for this page — handy in READMEs and docs.