It is currently impossible to test openGL iPhone apps right now despite what you might read here or here. Both the google-toolbox-for-mac google code project and rbiphonetest ruby gem are intended for regular cocoa applications only and admittedly suffer from limitations of which of the apple frameworks you can have imported into your projects .
from: http://drnicwilliams.com/2008/07/04/unit-testing-iphone-apps-with-ruby-rbiphonetest/
[There may be]... significant differences between your available Mac-based frameworks, such as Cocoa, and the iPhone-based frameworks, such as UIKit. We need to compare the framework names, header files and method signatures.
So for example, you cannot currently unit test any class that depends on/includes the UIKit framework. Why? It doesn’t exist on your Mac, so the Mac/Intel compiler cannot link it in. We’re compiling and running our tests with RubyCocoa, which itself is built against the Mac/Intel frameworks, not the iPhone frameworks....
Has the state of things changed since your post? I am working on an iPhone game and would very much like to unit test it.
ReplyDelete