---
title: continueAfterFailure
framework: XCTest
role: symbol
role_heading: Instance Property
platforms: []
path: xctest/xctestcase/1496260-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

The default is [true](../../swift/true.md). Set this property to [false](../../swift/false.md) 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](runsforeachtargetapplicationuiconfiguration.md)
- [executionTimeAllowance](executiontimeallowance.md)
