AgentSkillsCN

xctest-scaffold

为 Swift 模块编写 XCTest 测试用例,确保代码质量与功能完备。

SKILL.md
--- frontmatter
name: xctest-scaffold
description: Scaffold XCTest cases for a Swift module.
disable-model-invocation: true

XCTest Scaffold

Create unit tests for Swift modules and view models.

When to Use

  • When adding new logic or refactoring existing logic.

Inputs

  • Target type or function
  • Expected behaviors and edge cases

Instructions

  1. Create an XCTestCase file.
  2. Add tests for normal and edge cases.
  3. Use async tests for concurrency.

Output

  • XCTest file with clear, behavior-focused tests.