---
title: isStrict
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctexpectedfailure/options/isstrict
---

# isStrict

A Boolean value that indicates whether the test reports an error if the expected failure doesn’t occur.

## Declaration

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

## Discussion

Discussion The default is true. Set this property to false to prevent the test from recording the unfilled expected failure as an issue.

## See Also

### Specifying Options

- [nonStrict()](xctest/xctexpectedfailure/options/nonstrict().md)
- [isEnabled](xctest/xctexpectedfailure/options/isenabled.md)
