Docs: update docs for Testing
Summary: - Docs: update docs for Testing Stats: - 1 file changed, 11 insertions(+)
This commit is contained in:
parent
9af6dfd424
commit
d10302849b
@ -32,6 +32,17 @@ Run all tests from the package root:
|
||||
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
|
||||
For granular control (enabling/disabling specific tests or trying different configurations), use **Xcode Test Plans**:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user