---
title: executionTimeAllowance
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctestcase/executiontimeallowance
---

# executionTimeAllowance

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

## Declaration

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

## Discussion

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.

## See Also

### Managing Test Case Execution

- [runsForEachTargetApplicationUIConfiguration](xctest/xctestcase/runsforeachtargetapplicationuiconfiguration.md)
- [continueAfterFailure](xctest/xctestcase/continueafterfailure.md)
