---
title: isEnabled
framework: XCTest
role: symbol
role_heading: Instance Property
platforms: []
path: xctest/xctexpectedfailure/options/3726085-isenabled
---

# isEnabled

A Boolean value that indicates whether the test checks for the expected failure.

## Declaration

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

## Discussion

The default is `true`. Set this property to `false` to disable the expected failure check.

## See Also

### Specifying Options

- [nonStrict()](nonstrict().md)
- [isStrict](isstrict.md)
