Skip to content

Conversation

@skizz
Copy link

@skizz skizz commented Jul 24, 2012

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

skizz and others added 4 commits July 23, 2012 23:18
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/
…ror.

In this scenario the build reports as passed even though no tests have been run. This is due to a build configuration error. Make sure the error is reported and the build fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant