---
title: continueAfterFailure
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctestcase/continueafterfailure
---

# continueAfterFailure

A Boolean value that indicates whether a test method should continue running after a failure occurs.

## Declaration

```swift
var continueAfterFailure: Bool { get set }
```

## Discussion

Discussion The default is true. Set this property to false within a test method to end execution of that method as soon as a failure occurs. Other test methods in the suite may still execute after a test fails.

## See Also

### Managing Test Case Execution

- [runsForEachTargetApplicationUIConfiguration](xctest/xctestcase/runsforeachtargetapplicationuiconfiguration.md)
- [executionTimeAllowance](xctest/xctestcase/executiontimeallowance.md)
