swift-testing-expert
Expert guidance for Swift Testing: test structure, #expect/#require macros, traits and tags, parameterized tests, test plans, parallel execution, async…
Skill by ComeOnOliver
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/comeonoliver-swift-testing-expert
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, testing, writing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/swift-testing-expert
What's inside
- Skill name
swift-testing-expert- Description
- 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.
- License
- MIT
- Instructions
- 77 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: references/fundamentals.md, references/expectations.md, references/traits-and-tags.md, references/parameterized-testing.md, references/parallelization-and-isolation.md
Files (1)
- SKILL.md
SKILL.md (first lines)
# Swift Testing ## Overview Use this skill to write, review, migrate, and debug Swift tests with modern Swift Testing APIs. Prioritize readable tests, robust parallel execution, clear diagnostics, and incremental migration from XCTest where needed. ## Agent behavior contract (follow these rules) 1. Prefer Swift Testing for Swift unit and integration tests, but keep XCTest for UI automation (`XCUIApplication`), performance metrics (`XCTMetric`), and Objective-C-only test code. 2. Treat `#expect` as the default assertion and use `#require` when subsequent lines depend on a prerequisite value. 3. Default to parallel-safe guidance. If tests are not isolated, first propose fixing shared state before applying `.serialized`. 4. Prefer traits for behavior and metadata (`.enabled`, `.disabled`, `.timeLimit`, `.bug`, tags) over naming conventions or ad-hoc comments. 5. Recommend parameterized tests when multiple tests share logic and differ only in input values. 6. Use `@available` on test functions for OS-gated behavior instead of runtime `#available` checks inside test bodies; never annotate suite types with `@available`. 7. Keep migration advice incremental: convert assertions first, then organize suites, then introduce parameterization/traits. 8. Only import `Testing` in test targets, never in app/library/binary targets. ## First 60 seconds (triage template) - 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: - repetitive tests -> parameterized tests - noisy or flaky failures -> known issue handling and test isolation - migration questions -> XCTest mapping and coexistence strategy - async callback complexity -> continuation/await patterns ## Routing map (read the right reference fast) - Test building blocks and suite organization -> `references/fundamentals.md` - `#expect`, `#require`, and throw expectations -> `references/expectations.md` - Traits, tags, and Xcode test-plan filtering -> `references/traits-and-tags.md` - Parameterized test design and combinatorics -> `references/parameterized-testing.md` - Default parallel execution, `.serialized`, isolation strategy -> `references/parallelization-and-isolation.md` - Test speed, determinism, and flakiness prevention -> `references/performance-and-best-practices.md` - Async waiting and callback bridging -> `references/async-testing-and-waiting.md` - XCTest coexistence and migration workflow -> `references/migration-from-xctest.md` - Test navigator/report workflows and diagnostics -> `references/xcode-workflows.md` - Index and quick navigation -> `references/_index.md` ## Common pitfalls -> next best move - Repetitive `testFooCaseA/testFooCaseB/...` methods -> replace with one parameterized `@Test(arguments:)`. - Failing optional preconditions hidden in later assertions -> `try #require(...)` then assert on unwrapped value. - Flaky integration tests on shared database -> isolate dependencies or in-memory repositories; use `.serialized` only as a transition step. - Disabled tests that silently rot -> prefer `withKnownIssue` for temporary known failures to preserve signal. - Unclear failure values for complex types -> conform type to `CustomTestStringConvertible` for focused test diagnostics. - Test-plan include/exclude by names -> use tags and tag-based filters instead. ## Verification checklist - Confirm each test has a single clear behavior and expressive display name when needed. - Confirm prerequisites use `#require` where failure should stop the test. - Confirm repeated logic is parameterized instead of duplicated. - Confirm tests are parallel-safe or intentionally serialized with rationale. - Confirm async code is awaited and callback APIs are bridged safely. - Confirm migration keeps unsupported XCTest-only scenarios on XCTest. ## References - `references/_index.md` - `references/fundamentals.md` - `references/expectations.md` - `references/traits-and-tags.md` - `references/parameterized-testing.md` - `references/parallelization-and-isolation.md` - `references/performance-and-best-practices.md` - `references/async-testing-and-waiting.md` - `references/migration-from-xctest.md` - `references/xcode-workflows.md`
From ComeOnOliver/skillshub, MIT.
More from ComeOnOliver/skillshub
- 0.512score
solidity-coding
ComeOnOliver
[AUTO-INVOKE] MUST be invoked BEFORE writing or modifying any Solidity contract (.sol files).
SkillDFreshness: D★ 64Claude Code +9 - 0.512score
solidity-debug
ComeOnOliver
[AUTO-INVOKE] MUST be invoked when debugging failed on-chain transactions.
SkillDFreshness: D★ 64Claude Code +9 - 0.512score
ilspy-decompile
ComeOnOliver
Understand implementation details of .NET code by decompiling assemblies.
SkillDFreshness: D★ 64Claude Code +9 - 0.512score
solidity-audit
ComeOnOliver
Security audit and code review checklist.
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
crap-analysis
ComeOnOliver
Analyze code coverage and CRAP (Change Risk Anti-Patterns) scores to identify high-risk code.
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
claude-code-usage
ComeOnOliver
[AUTO-INVOKE] MUST be invoked at the START of each new coding session.
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
package-management
ComeOnOliver
Manage NuGet packages using Central Package Management (CPM) and dotnet CLI commands.
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
solidity-deploy
ComeOnOliver
[AUTO-INVOKE] MUST be invoked BEFORE deploying contracts or writing deployment scripts (*.s.sol).
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
microsoft-extensions-configuration
ComeOnOliver
Microsoft.Extensions.Options patterns including IValidateOptions, strongly-typed settings, validation on startup, and the Options pattern for clean…
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
aspire-service-defaults
ComeOnOliver
Create a shared ServiceDefaults project for Aspire applications.
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
defi-security
ComeOnOliver
[AUTO-INVOKE] MUST be invoked BEFORE deploying DeFi contracts (DEX, lending, staking, LP, token).
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
dotnet-devcert-trust
ComeOnOliver
Diagnose and fix .NET HTTPS dev certificate trust issues on Linux.
SkillDFreshness: D★ 64Claude Code +9
Signals
- Stars
- 64
- Forks
- 24
- Open issues
- 30
- Last commit (this folder)
- Mar 23, 2026 (7 months ago)
- Last release
- Apr 3, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ComeOnOliver/skillshub
- Website
- skillshub.wtf
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ComeOnOliver
- 0.512score
ilspy-decompile
ComeOnOliver
Understand implementation details of .NET code by decompiling assemblies.
SkillDFreshness: D★ 64Claude Code +9 - 0.512score
solidity-audit
ComeOnOliver
Security audit and code review checklist.
SkillDFreshness: D★ 64Claude Code +9 - 0.512score
solidity-debug
ComeOnOliver
[AUTO-INVOKE] MUST be invoked when debugging failed on-chain transactions.
SkillDFreshness: D★ 64Claude Code +9 - 0.512score
solidity-coding
ComeOnOliver
[AUTO-INVOKE] MUST be invoked BEFORE writing or modifying any Solidity contract (.sol files).
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
claude-code-usage
ComeOnOliver
[AUTO-INVOKE] MUST be invoked at the START of each new coding session.
SkillDFreshness: D★ 64Claude Code +9 - 0.509score
solidity-deploy
ComeOnOliver
[AUTO-INVOKE] MUST be invoked BEFORE deploying contracts or writing deployment scripts (*.s.sol).
SkillDFreshness: D★ 64Claude Code +9
Cite this page
swift-testing-expert skill. Agent Mart. https://agentmart.dev/skills/comeonoliver-swift-testing-expert (last updated 2026-10-24)