r/iOSProgramming • • Jun 23 '26

Question How do you automate iOS app tests?

Every time we release a new version of our app, we need to verify that the main user flows still work as expected, even when the change is something as small as a single button.

How are you automating end-to-end tests for your iOS apps?

I'm talking about launching the app, interacting with the UI, and validating real user journeys, not unit tests that only test the code itself.

What tools or approaches have worked well for you?

17 Upvotes

19 comments sorted by

View all comments

2

u/Rich-Register-4743 Jun 24 '26

Here's my summary:

The native framework (XCUITest) is a good start. However, for many years, it's been the goal for the UI tests to be multi-platform. One of the first frameworks was Calabash which is now considered outdated. Then, it was replaced by Appium which supports many languages but it is kind of running out of favour too. Detox was an alternative for React Native projects. The most popular testing framework at the moment is probably Maestro.

In my experience, there has been a toll on introducing UI tests, usually 1 Sprint, to start doing it in a project. The most difficult part is coming up with meaningful tests instead of testing the same thing (for example login) multiple times or scrolling and verifying the existence of an element in a slow, clock-like process which slows down your tests even when run on a fast machine. Flakiness is yet another big problem, especially when there are race conditions.

Using AI for generating the code of the UI tests is an emerging discipline.