·swift-testing
</>

swift-testing

bluewaves-creations/bluewaves-skills

带有 @Test 宏的 Swift 测试框架,

6安装·0热度·@bluewaves-creations

安装

$npx skills add https://github.com/bluewaves-creations/bluewaves-skills --skill swift-testing

SKILL.md

Comprehensive guide to the modern Swift Testing framework, test organization, assertions, and Xcode Playgrounds for iOS 26 development.

| Test marking | @Test macro | Method naming test | | Assertions | #expect, #require | XCTAssert | | Test organization | Structs, actors, classes | XCTestCase subclass | | Parallelism | Parallel by default | Process-based | | Setup/Teardown | init/deinit | setUp/tearDown |

| XCTAssertTrue(x) | #expect(x) | | XCTAssertFalse(x) | #expect(!x) | | XCTAssertEqual(a, b) | #expect(a == b) | | XCTAssertNil(x) | #expect(x == nil) | | XCTAssertNotNil(x) | try #require(x) | | XCTAssertThrowsError | #expect(throws:) | | XCTUnwrap(x) | try #require(x) |

带有 @Test 宏的 Swift 测试框架, 来源:bluewaves-creations/bluewaves-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/bluewaves-creations/bluewaves-skills --skill swift-testing
分类
</>开发工具
认证
收录时间
2026-02-02
更新时间
2026-02-18

快速解答

什么是 swift-testing?

带有 @Test 宏的 Swift 测试框架, 来源:bluewaves-creations/bluewaves-skills。

如何安装 swift-testing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/bluewaves-creations/bluewaves-skills --skill swift-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/bluewaves-creations/bluewaves-skills