Although they may seem familiar and some people tend to confuse them, Xcode UI Testing and Unit Testing differ notably.
Unit Test is the very much Unit Test we all know, since testing techniques are known. You have complete access to the Main Project and you operate its classes and frameworks like you do as a side library. You can write mocks, stubs, etc.
But UI Test is less familiar.
UI testing differs from unit testing in essential ways.Continue reading Xcode UI Recordings Vs Unit Testing