Hacker News new | ask | show | jobs
by wingerlang 3070 days ago
I thought UI testing would be hard for iOS, but in practice it was only the new "style" of interacting with the app that was an obstacle.

Xcode literally allows you to record your taps, however the code will be impossible to maintain. It is better to pause the application with breakpoints, inspect the app through "po app" and see what it allows you to click. Then just add the code to click whatever you want. Then continue.

There's a lot of "aha" moments but as each one gets ironed out you'll become faster at it.

As an added bonus you will be more knowledgable about how your app perform in 'accessibility' mode.

I also consider the "breaking" of UI tests a feature. Because if you do some breaking change, you might have added some new bugs. In practice I haven't had the 'hell' period of many tests breaking though.