Post

Replies

Boosts

Views

Activity

Comment on Color asset test not working due to color not being loaded when test conditions are evaluated
I'm a little confused how it thinks it has no code because it has test code in this bundle (the xcassets catalog is stored in the test target). I'm able to get this to work outside of the tests, so I think this is something specific to the tests. I just also tried to have the situation be in a separate target that the test target would depend on but that did nothing to fix this issue either.
Aug ’23
Comment on Color asset test not working due to color not being loaded when test conditions are evaluated
These steps that you are suggesting, do you suggest I implement those for the system under test (it appears to be working fine when used in an ordinary target, though doesn't work for the tests) or for the colours that the test target attempts to check the colours against? (ie are you referring to the expected colours or actual colours for these steps?)
Aug ’23
Comment on Color asset test not working due to color not being loaded when test conditions are evaluated
I don't understand how you are determining that there is no code in the bundle? How would I fix this in order to get the code to run correctly? As for trying using AppKit or UIKit as an intermediary, this was something that I really wanted to avoid because of the complexity of choosing the correct framework such that the tests are executable on any of Apple's platforms. However, I did try this and got a different error that was similar to the error that I'm still getting with these tests.
May ’24