How would you test an app upgrade that migrates local user data?
Answer
Create representative data on supported old versions, upgrade through valid paths, verify schema transformation, encryption, rollback policy and synchronization. Cover low storage, interrupted migration, reinstall, downgrade restrictions and recovery from corrupt legacy data.
Strong answer includes
- real upgrade paths
- interruption and rollback
- data integrity and recovery
Practical example
Before releasing a new local-database schema, the team seeds a device with two years of realistic data on the oldest supported version, upgrades it, then kills the app mid-migration to simulate a crash, and confirms the app detects the incomplete migration on next launch and resumes instead of corrupting the user's data.