lukeredpath/xcodebuild-rb — pull request #6 by skizz (2012-07-24 06:21:01+00:00)
Title: Add support for parsing (OCUnit) unit tests

Detect failing unit tests and report them as errors in the build.

Show a detailed warning and fail the build if the RunPlatformUnitTests script error is detected.
See here: http://www.stewgleadow.com/blog/2012/02/09/running-ocunit-and-kiwi-tests-on-the-command-line/

Note that I have not added this to the default ProgressFormatter.
You need to add the translator explicitly to get it to work:

XcodeBuild::OutputTranslator.use_translation(:unit_testing)
t.formatter = XcodeBuild::Formatters::ProgressFormatter.new