Loading...
Loading...
Compare original and translation side by side
ios-tddios-tddreferencesreferencesSKILL.mdSKILL.md| Category | Artifact | Format | Example |
|---|---|---|---|
| Correctness | iOS TDD test plan | Markdown doc per | |
| Correctness | Test pyramid coverage report | Markdown doc showing 70/20/10 distribution and per-layer coverage | |
| 类别 | 工件 | 格式 | 示例 |
|---|---|---|---|
| 正确性 | iOS TDD测试计划 | 遵循 | |
| 正确性 | 测试金字塔覆盖率报告 | 展示70/20/10分布及分层覆盖率的Markdown文档 | |
references/references/@Test@Test| Topic | Section | Covers |
|---|---|---|
| TDD Workflow | Red-Green-Refactor | Step-by-step cycle with Swift examples |
| Test Pyramid | Test Pyramid | Unit, integration, UI split |
| Swift Testing | Swift Testing | @Test macro, #expect, async testing |
| Mocking | Protocol Mocking | Protocol-based mocks, no library needed |
| Network Mocking | URLProtocol Mock | URLProtocol subclass for API tests |
| UI Tests | XCUITest | End-to-end UI testing |
| CI Setup | CI Pipeline | Xcode Cloud, GitHub Actions |
| 主题 | 章节 | 涵盖内容 |
|---|---|---|
| TDD工作流 | 红-绿-重构循环 | 带Swift示例的分步循环 |
| 测试金字塔 | 测试金字塔 | 单元测试、集成测试、UI测试的划分 |
| Swift Testing | Swift Testing | @Test宏、#expect、异步测试 |
| Mocking | 基于协议的Mocking | 基于协议的Mock,无需库支持 |
| 网络Mocking | URLProtocol Mock | 用于API测试的URLProtocol子类 |
| UI测试 | XCUITest | 端到端UI测试 |
| CI配置 | CI流水线 | Xcode Cloud、GitHub Actions |
ios-tddThe Red-Green-Refactor CycleTest Pyramid (70/20/10)TDD Workflow for iOS FeaturesSwift Testing FrameworkProtocol-Based MockingTesting @Observable ViewModelsURLProtocol for Network MockingSwiftData / Core Data TestingXCUITest for Critical FlowsTest Naming ConventionPatterns and Anti-PatternsIntegration with Other Skillsios-tddThe Red-Green-Refactor CycleTest Pyramid (70/20/10)TDD Workflow for iOS FeaturesSwift Testing FrameworkProtocol-Based MockingTesting @Observable ViewModelsURLProtocol for Network MockingSwiftData / Core Data TestingXCUITest for Critical FlowsTest Naming ConventionPatterns and Anti-PatternsIntegration with Other Skills