<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macOS: 11.3.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderDomain/TestingModes-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "File Provider",
      "FileProvider"
    ],
    "preciseIdentifier" : "c:@E@NSFileProviderDomainTestingModes"
  },
  "title" : "NSFileProviderDomain.TestingModes"
}
-->

# NSFileProviderDomain.TestingModes

Modes that modify the system’s behavior while testing.

```
struct TestingModes
```

## Topics

### Accessing Modes

[`NSFileProviderDomainTestingModeAlwaysEnabled`](/documentation/FileProvider/NSFileProviderDomain/TestingModes-swift.struct/alwaysEnabled)

A testing mode that automatically enables the domain.

[`NSFileProviderDomainTestingModeInteractive`](/documentation/FileProvider/NSFileProviderDomain/TestingModes-swift.struct/interactive)

A testing mode where the extension can deterministically test asynchronous operations.

### Creating Modes

[`init(rawValue:)`](/documentation/FileProvider/NSFileProviderDomain/TestingModes-swift.struct/init(rawValue:))

Returns a newly-created testing mode.

## Relationships

### Conforms To

[`OptionSet`](/documentation/Swift/OptionSet)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

---

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)