iOS Testing Guide

Testing asynchronous code is not very straightforward.

What’s the issue?

In general, a test is over when the function returns. Using this theory, all asynchronous code will be skipped, bcoz the test will be over before the code starts.

What’s the solution?

A promise. We need to tell the system…

Rajai Kumar

I’m a workaholic iOS developer. I focus a lot on UX and product efficiancy.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store