swift-testing-guidelines
CommunityWrite SwiftStateTree tests with Swift Testing.
Authorgmliao
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill provides a structured set of guidelines to write correct and maintainable tests for Swift StateTree using the Swift Testing framework. It helps teams avoid common pitfalls and align test style across modules.
Core Features & Use Cases
- Clear guidance on using @Test, #expect, and Issue.record for tests.
- Examples illustrating common test patterns: basic tests, setup/teardown, assertions, and async tests.
- Coverage across core modules: core library, transport, macros, matchmaking, and more.
Quick Start
Create a new Swift test file for your module, annotate tests with @Test, and replace XCTest assertions with #expect. Ensure tests use Issue.record for failures and follow the Arrange-Act-Assert pattern.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: swift-testing-guidelines Download link: https://github.com/gmliao/swift-state-tree/archive/main.zip#swift-testing-guidelines Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.