Docs Testing

Summary:
- Docs: Testing

Stats:
- 1 file changed, 11 insertions(+)
This commit is contained in:
Matt Bruce 2026-01-16 10:21:44 -06:00
parent 73d6f7ec8b
commit 35ce409f4e

View File

@ -32,6 +32,17 @@ Run all tests from the package root:
swift test swift test
``` ```
### Xcode Command Line
For packages that use platform-specific features (like `WatchConnectivity`), use `xcodebuild`:
```bash
# Run on an available simulator (e.g., iPhone 16)
xcodebuild test -scheme LocalData -destination 'platform=iOS Simulator,name=iPhone 16'
# Or using the specific device ID
xcodebuild test -scheme LocalData -destination 'id=4BF0FAE0-8FC1-4E19-89F4-2EDF12A28847'
```
### Xcode Test Plans ### Xcode Test Plans
For granular control (enabling/disabling specific tests or trying different configurations), use **Xcode Test Plans**: For granular control (enabling/disabling specific tests or trying different configurations), use **Xcode Test Plans**: