Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 516
Pascal Avatar asked Oct 15 '25 03:10

Pascal


1 Answers

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

like image 137
Chris Avatar answered Oct 17 '25 18:10

Chris