What problem does it solve?
Projects that use Swift Testing often suffer from outdated XCTest patterns, brittle async tests, hidden dependencies, and incorrect use of modern testing primitives; this Skill identifies those issues and prescribes precise, idiomatic fixes so tests are correct, reliable, and maintainable.
Core Features & Use Cases
- Focused code reviews: Analyze test suites for correct use of Swift Testing conventions such as structs over classes, #expect/#require, parameterized tests, and avoidance of setUp/tearDown anti-patterns.
- Async and concurrency validation: Verify confirmation(), actor isolation, serialized tests, time limits, and proper handling of legacy callback-style code via continuations.
- XCTest migration and modernization: Provide before/after conversions from XCTest idioms, recommend parameterized tests, traits, attachments, and scoped TestTrait setups for task-local values.
- Use Case: Migrate an iOS test target from XCTest to Swift Testing, fix flaky async tests, and produce a prioritized file-by-file list of changes with code snippets.
Quick Start
Ask the assistant to review the test target for Swift Testing compliance and return a file-by-file findings list with before/after fixes and a prioritized summary.