Post

Replies

Boosts

Views

Activity

Testing ObservableObject
What is the best way to test an ObservableObject?As a demo, I am trying to make a test, which has a function that takes an enum describing the position on a game board and updates the state of the object.Is there any way to instantiate the object for testing purposes without the UI (using a Unit Testing Bundle) so that I can test this function without the UI?
1
1
1.5k
Feb ’20
Run simulator tests rotated
I'm trying to write a .sh script to automatically run UI tests for all devices and device layouts (portrait/landscape). Is there a flag I can use to rotate the device using the command line?If not, is the best way to just extract my current tests into functions and have two tests that set the layout prior to calling the function?
0
0
462
Apr ’20