Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test targets don't have access to main app's xcasset catalog #150

Open
SterlingWaves opened this issue Feb 5, 2019 · 1 comment
Open

Comments

@SterlingWaves
Copy link

SterlingWaves commented Feb 5, 2019

I am trying to access the main app's xcasset catalog from my Snapshot Test target, by setting the main app as the dependency target of my test target, but it didn't work, i.e. the xcasset catalog would not show up in my test target's resources list.

@jerrymarino
Copy link
Collaborator

Hey @SterlingWaves - thanks for the report. If you're looking to setup an iOS test which "depends on the application" ( e.g. the test bundle is loaded into the application ) then you may want to set the TEST_HOST to the app in question.

For more of "unit" style snapshotting, perhaps you want to load various libraries and assets of the application in question: no dependency on the app process.

I took a look at this, and it seems like .xcasset may not be populated from a dependent library to a test bundle target under XCHammer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants