Contents

AppMigrationTester

A test-only type your app uses to test app migration extensions.

Declaration

actor AppMigrationTester

Overview

Use this type in unit tests that your containing app hosts. Calling the tester from your unit tests allows you to communicate with your app migration extension to valdiate your migration code.

In your tests, create an instance of AppMigrationTester, then access its exportController and importController properties to exercise export and import functionality, respectively.

Topics

Creating a tester instance

Testing export

Testing import

Supporting types