XCode 4 Unit Test: Test a Game on Runtime-Collection of common programming errors

Is it possible to do a unit-test during runtime? And how to do it? I’ve already done research and all I can do is doing logical tests.

There are events where UIs will popup, do this and that. I want to test features that needs to do that, poping UI and such. So I want it to be simulated and be tested if it will pass.

Any solution?

Thanks.