---
title: isEnabled
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctexpectedfailure/options/isenabled
---

# isEnabled

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

## Declaration

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

## Discussion

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

## See Also

### Specifying Options

- [nonStrict()](xctest/xctexpectedfailure/options/nonstrict().md)
- [isStrict](xctest/xctexpectedfailure/options/isstrict.md)
