swift-testing-expert by avdlee/swift-testing-agent-skill
npx skills add https://github.com/avdlee/swift-testing-agent-skill --skill swift-testing-expert使用此技能通过现代 Swift Testing API 编写、审查、迁移和调试 Swift 测试。优先考虑可读性强的测试、稳健的并行执行、清晰的诊断以及在需要时从 XCTest 进行增量迁移。
XCUIApplication)、性能指标(XCTMetric)和仅限 Objective-C 的测试代码,请保留 XCTest。#expect 视为默认断言,当后续代码行依赖于先决条件值时,使用 #require。.serialized。.enabled、.disabled、.timeLimit、、标签),优先使用特性而非命名约定或临时注释。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
.bug@available,而不是在测试体内部进行运行时 #available 检查;切勿在套件类型上标注 @available。Testing,切勿在应用/库/二进制目标中导入。references/fundamentals.md#expect、#require 和抛出期望 -> references/expectations.mdreferences/traits-and-tags.mdreferences/parameterized-testing.md.serialized、隔离策略 -> references/parallelization-and-isolation.mdreferences/performance-and-best-practices.mdreferences/async-testing-and-waiting.mdreferences/migration-from-xctest.mdreferences/xcode-workflows.mdreferences/_index.mdtestFooCaseA/testFooCaseB/... 方法 -> 替换为一个参数化的 @Test(arguments:)。try #require(...),然后对解包后的值进行断言。.serialized 用作过渡步骤。withKnownIssue 以保留信号。CustomTestStringConvertible 协议,以获得聚焦的测试诊断。#require 作为前置条件。references/_index.mdreferences/fundamentals.mdreferences/expectations.mdreferences/traits-and-tags.mdreferences/parameterized-testing.mdreferences/parallelization-and-isolation.mdreferences/performance-and-best-practices.mdreferences/async-testing-and-waiting.mdreferences/migration-from-xctest.mdreferences/xcode-workflows.md每周安装量
1.1K
代码仓库
GitHub 星标数
251
首次出现
Feb 12, 2026
安全审计
安装于
github-copilot975
codex961
opencode883
gemini-cli880
kimi-cli852
amp851
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.
XCUIApplication), performance metrics (XCTMetric), and Objective-C-only test code.#expect as the default assertion and use #require when subsequent lines depend on a prerequisite value..serialized..enabled, .disabled, .timeLimit, .bug, tags) over naming conventions or ad-hoc comments.@available on test functions for OS-gated behavior instead of runtime #available checks inside test bodies; never annotate suite types with @available.Testing in test targets, never in app/library/binary targets.references/fundamentals.md#expect, #require, and throw expectations -> references/expectations.mdreferences/traits-and-tags.mdreferences/parameterized-testing.md.serialized, isolation strategy -> references/parallelization-and-isolation.mdreferences/performance-and-best-practices.mdtestFooCaseA/testFooCaseB/... methods -> replace with one parameterized @Test(arguments:).try #require(...) then assert on unwrapped value..serialized only as a transition step.withKnownIssue for temporary known failures to preserve signal.CustomTestStringConvertible for focused test diagnostics.#require where failure should stop the test.references/_index.mdreferences/fundamentals.mdreferences/expectations.mdreferences/traits-and-tags.mdreferences/parameterized-testing.mdreferences/parallelization-and-isolation.mdreferences/performance-and-best-practices.mdreferences/async-testing-and-waiting.mdreferences/migration-from-xctest.mdWeekly Installs
1.1K
Repository
GitHub Stars
251
First Seen
Feb 12, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot975
codex961
opencode883
gemini-cli880
kimi-cli852
amp851
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
AI代码审查工具 - 自动化安全漏洞检测与代码质量分析 | 支持多领域检查清单
1,200 周安装
AI智能体长期记忆系统 - 精英级架构,融合6种方法,永不丢失上下文
1,200 周安装
AI新闻播客制作技能:实时新闻转对话式播客脚本与音频生成
1,200 周安装
Word文档处理器:DOCX创建、编辑、分析与修订痕迹处理全指南 | 自动化办公解决方案
1,200 周安装
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装
Nano Banana AI 图像生成工具:使用 Gemini 3 Pro 生成与编辑高分辨率图像
1,200 周安装
references/async-testing-and-waiting.mdreferences/migration-from-xctest.mdreferences/xcode-workflows.mdreferences/_index.mdreferences/xcode-workflows.md