<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTExpectedFailure/Options/nonStrict()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTExpectedFailureOptions(cm)nonStrictOptions"
  },
  "title" : "nonStrict()"
}
-->

# nonStrict()

Options that specify that an unfulfilled expected failure doesn’t generate a test failure.

```
class func nonStrict() -> XCTExpectedFailure.Options
```

## Return Value

Returns an options instance that specifies that an unfulfilled expected failure doesn’t generate a test failure.

---

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)