<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTestCase/executionTimeAllowance",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTestCase(py)executionTimeAllowance"
  },
  "title" : "executionTimeAllowance"
}
-->

# executionTimeAllowance

The number of seconds, rounded up to the nearest minute, for a test to run before it fails with a timeout error.

```
var executionTimeAllowance: TimeInterval { get set }
```

## Discussion

If the duration of a test exceeds this value, it’s marked as a failure and the next test runs. The default value is 600 seconds, or 10 minutes. The test rounds up the value you supply to the nearest minute.

Use this property to guard against long-running or hanging tests; use performance tests to precisely measure execution time and guard against regressions.

To use this setting, enable timeouts in your test plan or set the `-test-timeouts-enabled` option to `YES` when using `xcodebuild`.

> Note:
> The test may run for less time than you specify if you customize the Maximum Test Execution Time Allowance setting in the test plan, or if you pass the `-maximum-test-execution-time-allowance` option to `xcodebuild`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)