<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTExpectedFailure/Options/isStrict",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTExpectedFailureOptions(py)strict"
  },
  "title" : "isStrict"
}
-->

# isStrict

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

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

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)