---
title: AppMigrationTester
framework: appmigrationkit
role: symbol
role_heading: Class
path: appmigrationkit/appmigrationtester
---

# AppMigrationTester

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

## Declaration

```swift
actor AppMigrationTester
```

## Overview

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. warning: Use AppMigrationTester only in unit tests, not in production code. The tester doesn’t operate in a production environment.

## Topics

### Creating a tester instance

- [init(platform:)](appmigrationkit/appmigrationtester/init(platform:).md)

### Testing export

- [exportController](appmigrationkit/appmigrationtester/exportcontroller.md)
- [AppMigrationTester.AppExportController](appmigrationkit/appmigrationtester/appexportcontroller.md)

### Testing import

- [importController](appmigrationkit/appmigrationtester/importcontroller.md)
- [AppMigrationTester.AppImportController](appmigrationkit/appmigrationtester/appimportcontroller.md)

### Supporting types

- [AppMigrationTester.DeviceToDeviceExportProperties](appmigrationkit/appmigrationtester/devicetodeviceexportproperties.md)
- [AppMigrationTester.ResourcesExportResult](appmigrationkit/appmigrationtester/resourcesexportresult.md)

## Relationships

### Conforms To

- [Actor](swift/actor.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
