Test bundles

Uploading previews from outside your application

Usually previews are in your main application, right alongside app source code. However, sometimes you want to include previews (either PreviewProvider or #Preview macro) in unit test code. You can also run unit test previews as snapshot tests, just include the unit test bundle in your upload.

Any unit test bundle (.xctest) in the app's PlugIns folder gets included when running snapshot tests.

This is the default when building unit tests with xcodebuild build-for-testing