Mohammad Azam
Dec 7, 2022

--

Hi Jim,

I have a unrelated question for you. If you are building a SwiftUI application and you are implementing the LoginView which access a webservice to authenticate, how would we perform UI Testing for the LoginView. In order to test the LoginView, we need to inject a Mock LoginService and then return mock results.

OR

Do we test the behavior of the login process through the end to end testing, where we invoke a real live TEST service (API) and check the results.

Thoughts?

--

--

Mohammad Azam
Mohammad Azam

Written by Mohammad Azam

Lead instructor at a coding bootcamp. Top iOS mobile instructor on Udemy. Author of multiple books and international speaker. azamsharp.school

Responses (2)