This is a mirror of official site: http://jasper-net.blogspot.com/

Xcode: Static library template with Google Toolkit for Mac Testing framework.

| Wednesday, May 12, 2010
For the past few posts i have been talking about how you can adjust the existing project templates and how you can use static libraries within your own project. For some time i wanted to write something about how to do unit testing within your iPhone project.

I have been using the Google Toolkit for Mac for some time now and then especially the unit testing framework that is included. This is quite a nice framework which adds some extra capabilities in comparison to the standard testing framework which is available within Xcode.

One thing that bothered me with the standard unit testing framework of Xcode is that when you create a project is is not present by default. It is also quite difficult to set it up, there are numerous explanations on this subject on the internet but almost none of them are complete. It all involves creating new build targets, setting up the dependencies between the targets and more.

To do this every time when you create a new project it is much more convenient to just adjust the existing templates so that when you create a new project it is present by default. Now there are quite a lot of project templates to begin with, not only do you have for example a project template visible in the New Project window but a lot of these also contain a number of sub-templates. For example, a lot of templates have options like Core data, this is actually a separate project template.

In an earlier post i already outlined why using static libraries are so interesting:

  • Re-usability of source code.
  • Separation of user interface logic and business logic / application logic.

Read more: Sodeso

Posted via email from jasper22's posterous

0 comments: