App Extensions Should Be Unit Testable

Originator:sethfri
Number:rdar://19554488 Date Originated:01/21/2015
Status:Duplicate/15580694/Open Resolved:No
Product:Developer Tools Product Version:
Classification:Enhancement Reproducible:N/A
 
Summary:
Currently, test bundles cannot be created for app extensions. In order to write tests for an extension, you have to extract out the testable pieces of code into their own framework, which doesn't always make sense architecturally. You should be able to easily write unit tests for app extensions.

Steps to Reproduce:
1. Create extension
2. Write unit tests for extension in its own test bundle

Expected Results:
You should be able to easily write unit tests for an app extension.

Actual Results:
You need to copy all of the testable code into a separate framework in order to write unit tests.

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!