Pascal
Pascal

Reputation: 2700

Add Test-Assets for XCTest

I want to do a couple of tests regarding images (e.g. if image are resized correctly).

How can I add specific images (or assets) to a project that are only available for the tests?

Upvotes: 4

Views: 2061

Answers (1)

Chris
Chris

Reputation: 1284

Add your images or assets to your project then set the "Target Membership" for your test target in the "File Inspector".

enter image description here

Upvotes: 4

Related Questions