interactive
A testing mode where the extension can deterministically test asynchronous operations.
Declaration
static var interactive: NSFileProviderDomain.TestingModes { get }Discussion
Disable the system’s automatic scheduling and execution of operations. Instead, the File Provider extension can manually determine the order of execution.
This testing mode enables the following synchronous methods:
- listAvailableTestingOperations()
Lists all the operations that are ready for scheduling.
- run(_:)
Asks the system to schedule and execute the specified operations.
The interactive testing mode expects the File Provider extension to repeat the following steps while running tests:
Call listAvailableTestingOperations()to get the list of outstanding operations.
Select the next set of operations required by your test.
Call run(_:)to execute those operations.
The interactive testing mode also disables some of the File Provider extension’s crash guarantees. For example, the system may lose any event that it hasn’t yet ingested.