Thursday January 24, 2013

Running iOS Unit Tests From the Command Line

Stewart Gleadow posted this a while ago, but I’ve recieved so many questions in the last couple weeks about how to run a unit test bundle for iOS from the command line that I’m linking here. Stew set up a sample project that uses some scripts to do the same kind of magic that Xcode does to inject the unit test bundle into the simulator. Follow the instructions to learn more. Everything is there for you to dissect how to do it yourself.

Note, you’ll need to install WaxSim to launch the simulator from Stew’s scripts, and my fork is a stable version that I know works.