Uninstall app or clear app preferences between XCUITest

Originator:shagun
Number:rdar://34513513 Date Originated:09/19/2017
Status:Open Resolved:
Product:Xcode Product Version:8
Classification:Suggestion Reproducible:Yes
 
Area:
Xcode

Summary:
Summary:
It's not possible to uninstall the app or it's preferences between test scenarios

It would be great to be able to do this as some tests within the suite may require a clean install.

The only way to do this currently is to set a launch argument and handle that code but an XCTest provided way to ensure no preferences are set would be best and also launch arguments can't be used for undocumented system preferences e.g. location permissions which would be resolved if the app was uninstalled.

Let me know what you think of the suggestion 

Steps to Reproduce:

Expected Results:


Actual Results:


Version/Build:


Configuration:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!