swift-clean-tests
Installation
SKILL.md
Swift Clean Tests
Audit and improve Swift tests per Clean Code (Robert Martin) — Chapter 9: Unit Tests, adapted to XCTest and Swift Testing framework.
Arguments
The user provided: $ARGUMENTS
If a file path is given — read it. If no arguments — ask the user to paste the code or specify a file.
FIRST Principles Checklist
F — Fast
- Tests must run in milliseconds, not seconds
- No real network calls, no real database, no
Thread.sleep - Use protocol mocks or in-memory implementations for I/O