Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does unit testing on the iPhone work?

Do I need special libraries for this, or can I just create a huge class that trys to instantiate every object of my project and test all the methods in there? How's that done in theory?

like image 566
Thanks Avatar asked May 14 '09 08:05

Thanks


People also ask

How does unit testing work in mobile application?

Unit tests have two main purposes: Reduce the number of bugs by making sure that our class/module/component is working as expected with all possible inputs. Reduce the number of regressions by making sure that our new functionality, bug fixes or refactoring hasn't broken any existing functionality.

How does unit testing work?

Unit testing is a software development process in which the smallest testable parts of an application, called units, are individually and independently scrutinized for proper operation. This testing methodology is done during the development process by the software developers and sometimes QA staff.

What is unit testing in mobile testing?

Unit tests or small tests only verify a very small portion of the app, such as a method or class. End-to-end tests or big tests verify larger parts of the app at the same time, such as a whole screen or user flow. Medium tests are in between and check the integration between two or more units.

Is unit testing worth the money?

Unit testing ensures that all code meets quality standards before it's deployed. This ensures a reliable engineering environment where quality is paramount. Over the course of the product development life cycle, unit testing saves time and money, and helps developers write better code, more efficiently.


1 Answers

Googling "unit testing iPhone" gives this excellent link as the first hit:

To sum up, Google Toolbox provides a good infrastructure for unit testing on iPhone.

like image 180
Jane Sales Avatar answered Oct 09 '22 18:10

Jane Sales