How to run OCTest from command-line, not XCode

cocoa, ocunit, xcode

Solution

This is a very useful post about debugging OCUnit tests.

http://chanson.livejournal.com/120740.html

Problem

XCode 3.1.2 using built-in OCTest unit testing. I'm getting a crash when unit tests run. I want to run w/ a few extra environment variables (MallocCheckHeapStart, MallocCheckHeapEach, for example). I'm a beginner with this and can't figure out how to run my app's OCTest unit tests from the command-line. Or alternatively, to convince XCode to set a few extra environment variables when it launches the unit tests.

Original source