iOS Interview Prep — Testing Strategy
The purpose of this interview preparation series is to assist you in quickly refining your interview skills and thoroughly preparing for the typical questions asked during an iOS interview. If you find it useful, please leave a comment or tap the like button.
Overview
Testing is another crucial aspect of iOS development, it plays a pivotal role in our development process to deliver a successful and bug-free experience. A good testing strategy for iOS involves a combination of manual testing and automated testing, to maximize the benefits of each. An experience iOS developer should have a good understanding of all the types of tests and when to apply them.
Testing Strategy
There are many types of tests you can add to assure the highest possible quality of your app. They each serve a different purpose and cover different components of your code. When you decide to add more tests to your app, how should we utilize all these tests in the app?
A good practice is to come up with a testing strategy that combines multiple types of tests so that we can maximize the benefits of each. But that doesn’t mean you should write the same amount of tests for each type. Instead, we should aim for a “pyramid” distribution of tests, as shown in the figure below.