swift-testing-code-review by existential-birds/beagle
npx skills add https://github.com/existential-birds/beagle --skill swift-testing-code-review| 问题类型 | 参考文档 |
|---|---|
| #expect 与 #require、表达式捕获、错误测试 | references/expect-macro.md |
| 带参数的 @Test、特性、zip() 陷阱 | references/parameterized.md |
| 确认、异步序列、完成处理程序 | references/async-testing.md |
| @Suite、标签、并行执行、.serialized | references/organization.md |
#expect 中(而非预先计算的布尔值)#require 仅用于前置条件, 用于断言广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
#expect(any Error).self)zip()(而非笛卡尔积)confirmation(expectedCount:) 进行测试withCheckedContinuation,而非 confirmation.serialized 仅在必要时应用(共享资源)@Test 函数之间存在状态持久性#expect 中的预先计算布尔值是否会丢失诊断上下文?#require 是否过早停止测试,而不是揭示所有失败?zip() 是否会因数组长度不等而静默丢弃测试用例?confirmation 进行测试?每周安装量
80
代码仓库
GitHub 星标数
41
首次出现
2026年1月20日
安全审计
安装于
codex63
gemini-cli62
opencode61
claude-code59
cursor52
github-copilot51
| Issue Type | Reference |
|---|---|
| #expect vs #require, expression capture, error testing | references/expect-macro.md |
| @Test with arguments, traits, zip() pitfalls | references/parameterized.md |
| confirmation, async sequences, completion handlers | references/async-testing.md |
| @Suite, tags, parallel execution, .serialized | references/organization.md |
#expect (not pre-computed booleans)#require used only for preconditions, #expect for assertions(any Error).self)zip() (not Cartesian product)confirmation(expectedCount:)withCheckedContinuation, not confirmation.serialized applied only where necessary (shared resources)@Test functions#expect lose diagnostic context?#require stopping tests prematurely instead of revealing all failures?zip() silently drop test cases due to unequal array lengths?confirmation?Weekly Installs
80
Repository
GitHub Stars
41
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex63
gemini-cli62
opencode61
claude-code59
cursor52
github-copilot51
测试策略完整指南:单元/集成/E2E测试金字塔与自动化实践
11,200 周安装