run_project_tests
Run Xcode project tests with optional scheme and timeout. Returns detailed test results including pass/fail counts and failure messages.
Instructions
Run tests for the specified Xcode project or workspace.
Tests run for up to timeout seconds (default 600, i.e. 10 minutes) before
timing out, which guards against a test run hanging indefinitely. Raise it
for large projects whose build-for-testing alone exceeds the default.
Args: project_path: Path to Xcode project/workspace directory scheme: Optional scheme to test (uses active scheme if not specified) timeout: Maximum seconds to wait for the build-for-testing plus test run to complete. If not provided, defaults to 600. Must be a positive integer.
Returns: JSON with test results if tests complete, otherwise plain text status message. Success format: { "xcresult_path": "...", "summary": {"total_tests": N, "passed": M, "failed": K, "skipped": L}, "failed_tests": [{"test_name": "...", "failure_message": "...", ...}] } Timeout: Plain text message indicating timeout
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scheme | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |