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
- •Create an
XCTestCasefile. - •Add tests for normal and edge cases.
- •Use
asynctests for concurrency.
Output
- •XCTest file with clear, behavior-focused tests.