Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for parsing (OCUnit) unit tests #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add support for parsing (OCUnit) unit tests #6

wants to merge 4 commits into from

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